/**
 * STR Multiple Descriptions — Frontend styles.
 *
 * Scope: only the "STR Multiple Descriptions" Elementor widget output
 * (`.str-md-wrapper` and its children). Only enqueued on pages/previews
 * that actually use the widget (see Elementor\Widgets\MultipleDescriptionsWidget::get_style_depends()
 * and Assets\AssetLoader::register_frontend_style()).
 *
 * Background color and border radius come from per-description product
 * meta and are applied inline as CSS custom properties by
 * Frontend\FrontendRenderer (--str-md-bg-color, --str-md-radius-desktop,
 * --str-md-radius-mobile). Everything else (typography, text color,
 * padding, gap, text alignment) is generated automatically by Elementor's
 * Style tab controls and does not need to be declared here.
 */

.str-md-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.str-md-description-block {
	box-sizing: border-box;
	width: 100%;
	background-color: var( --str-md-bg-color, #ffffff );
	border-radius: var( --str-md-radius-desktop, 0px );
	overflow: hidden;
}

.str-md-description-content {
	box-sizing: border-box;
}

.str-md-description-content > *:first-child {
	margin-top: 0;
}

.str-md-description-content > *:last-child {
	margin-bottom: 0;
}

.str-md-description-content img {
	max-width: 100%;
	height: auto;
}

/* Editor/preview-only diagnostic placeholder — never shown on the live frontend. */
.str-md-editor-placeholder {
	padding: 15px;
	border: 1px dashed #d0d0d0;
	background: #f8f8f8;
	color: #6d6d6d;
	font-size: 13px;
	line-height: 1.5;
}

/**
 * Mobile border radius takes over below the breakpoint. 768px matches the
 * common WooCommerce/Elementor default (see HANDOVER.md §9 — confirm with
 * stakeholder if a different breakpoint is required).
 */
@media ( max-width: 768px ) {
	.str-md-description-block {
		border-radius: var( --str-md-radius-mobile, 0px );
	}
}
