/*
 * Shared section shell: the outer wrapper, the panel that carries the
 * background and shadow, the split header and the header button. Every widget
 * in this plugin loads this sheet, so these classes mean the same thing and
 * respond to the same controls wherever they appear.
 */

.msw-outer {
	display: flex;
	justify-content: center;
	width: 100%;
}

.msw {
	--msw-head-space: 44px;
	--msw-head-gap: 32px;
	--msw-eyebrow-space: 18px;
	--msw-eyebrow-icon: 10px;
	--msw-title-space: 14px;
	--msw-btn-icon: 16px;

	/*
	 * Padding is held in variables, not written straight onto the box, so a
	 * child that has to reach the section's edge can cancel exactly what is
	 * there. Override these rather than the shorthand.
	 */
	--msw-pt: 48px;
	--msw-pr: 48px;
	--msw-pb: 48px;
	--msw-pl: 48px;

	width: 100%;
	box-sizing: border-box;
	padding: var(--msw-pt) var(--msw-pr) var(--msw-pb) var(--msw-pl);
	border-radius: 28px;
	background-color: #f4f6fb;
}

.msw *,
.msw *::before,
.msw *::after {
	box-sizing: border-box;
}

.msw__inner {
	width: 100%;
}

/* ------------------------------------------------------------------ header */

.msw__head {
	display: flex;
	flex-wrap: wrap;
	align-items: var(--msw-head-align, flex-start);
	justify-content: space-between;
	gap: var(--msw-head-gap);
	margin-bottom: var(--msw-head-space);
}

.msw__head--stacked {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.msw__head-text {
	flex: 1 1 320px;
	min-width: 0;
}

.msw__head--stacked .msw__head-text {
	flex: 0 1 auto;
}

.msw__head-action {
	flex: 0 0 auto;
}

.msw__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 var(--msw-eyebrow-space);
	border-radius: var(--msw-eyebrow-radius, 0);
	color: #2f6bff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.msw__eyebrow-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.msw__eyebrow-icon svg {
	width: var(--msw-eyebrow-icon);
	height: var(--msw-eyebrow-icon);
	fill: currentColor;
}

.msw__eyebrow-icon i {
	font-size: var(--msw-eyebrow-icon);
	line-height: 1;
}

.msw__title {
	margin: 0 0 var(--msw-title-space);
	color: #0d1220;
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.12;
}

.msw__desc {
	margin: 0;
	color: #5b6474;
	font-size: 15px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ button */

.msw__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 22px;
	border: 1px solid #d9dfea;
	border-radius: 999px;
	background-color: #ffffff;
	color: #0d1220;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--msw-card-speed) ease, color var(--msw-card-speed) ease,
		border-color var(--msw-card-speed) ease, box-shadow var(--msw-card-speed) ease,
		transform var(--msw-card-speed) ease;
}

.msw__btn:hover,
.msw__btn:focus-visible {
	transform: translateY(-2px);
}

.msw__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.msw__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.msw__btn-icon svg {
	width: var(--msw-btn-icon);
	height: var(--msw-btn-icon);
	fill: currentColor;
}

.msw__btn-icon i {
	font-size: var(--msw-btn-icon);
	line-height: 1;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
	.msw {
		--msw-pt: 36px;
		--msw-pr: 36px;
		--msw-pb: 36px;
		--msw-pl: 36px;
	}
}

@media (max-width: 767px) {
	.msw {
		--msw-head-space: 28px;
		--msw-pt: 24px;
		--msw-pr: 24px;
		--msw-pb: 24px;
		--msw-pl: 24px;
		border-radius: 20px;
	}

	.msw__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.msw__head--stacked {
		align-items: center;
	}

	.msw__head-text {
		flex: 1 1 auto;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.msw__btn {
		transition: none;
	}

	.msw__btn:hover,
	.msw__btn:focus-visible {
		transform: none;
	}
}
