/* =========================================================
   MasPlus modern skin — blocks (same selectors, indigo / service look).
   ========================================================= */

.mp-icon-boxes {
	--mp-ib-primary: var(--mp-primary, #4f46e5);
	--mp-ib-primary-rgb: var(--mp-primary-rgb, 79, 70, 229);
	margin: 2rem 0;
}

.mp-icon-boxes__title {
	text-align: center;
	font-size: 1.6rem;
	margin: 0 0 1.6rem;
	color: var(--mp-secondary, #0f172a);
}
.mp-icon-boxes--list .mp-icon-boxes__title {
	text-align: start;
	color: var(--mp-ib-primary);
}

/* ---------- Grid layout ---------- */
.mp-icon-boxes--grid .mp-icon-boxes__items {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, 1fr);
}
.mp-icon-boxes--grid.mp-cols-2 .mp-icon-boxes__items {
	grid-template-columns: repeat(2, 1fr);
}
.mp-icon-boxes--grid.mp-cols-4 .mp-icon-boxes__items {
	grid-template-columns: repeat(4, 1fr);
}

.mp-icon-boxes--grid .mp-icon-box {
	background: var(--mp-white, #fff);
	border: 1px solid var(--mp-border, #e2e8f0);
	border-radius: 16px;
	padding: 28px 22px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mp-icon-boxes--grid .mp-icon-box:hover {
	transform: translateY(-6px);
	box-shadow: 0 8px 24px rgba(var(--mp-ib-primary-rgb), 0.12);
	border-color: rgba(var(--mp-ib-primary-rgb), 0.4);
}

.mp-icon-boxes--grid .mp-icon-box__icon {
	width: 66px;
	height: 66px;
	border-radius: 16px;
	background: var(--mp-ib-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(var(--mp-ib-primary-rgb), 0.22);
	transition: transform 0.3s ease;
}
.mp-icon-boxes--grid .mp-icon-box:hover .mp-icon-box__icon {
	transform: scale(1.08) rotate(-4deg);
}

.mp-icon-box__svg,
.mp-icon-box .mp-icon {
	width: 32px;
	height: 32px;
}

.mp-icon-boxes--grid .mp-icon-box__title {
	font-size: 1.15rem;
	margin: 4px 0 0;
	color: var(--mp-ib-primary);
}
.mp-icon-boxes--grid .mp-icon-box__text {
	color: var(--mp-muted, #64748b);
	font-size: 0.94rem;
	line-height: 1.9;
	margin: 0;
}

/* ---------- List layout ---------- */
.mp-icon-boxes--list .mp-icon-boxes__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	align-items: center;
}
.mp-icon-boxes--list.mp-icon-boxes--has-image .mp-icon-boxes__inner {
	grid-template-columns: 1.1fr 0.9fr;
}

.mp-icon-boxes--list .mp-icon-boxes__items {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.mp-icon-boxes--list .mp-icon-box {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}
.mp-icon-boxes--list .mp-icon-box__icon {
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--mp-ib-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(var(--mp-ib-primary-rgb), 0.2);
}
.mp-icon-boxes--list .mp-icon-box__svg,
.mp-icon-boxes--list .mp-icon-box .mp-icon {
	width: 26px;
	height: 26px;
}
.mp-icon-boxes--list .mp-icon-box__title {
	font-size: 1.15rem;
	margin: 4px 0 6px;
	color: var(--mp-ib-primary);
}
.mp-icon-boxes--list .mp-icon-box__text {
	color: var(--mp-muted, #64748b);
	font-size: 0.94rem;
	line-height: 1.9;
	margin: 0;
}

.mp-icon-boxes__media img {
	width: 100%;
	height: auto;
	border-radius: 16px;
	object-fit: cover;
}

/* ---------- Editor tweaks ---------- */
.mp-icon-picker {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
}
.mp-icon-picker__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 8px;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	color: #0f172a;
	transition: all 0.15s ease;
}
.mp-icon-picker__btn:hover {
	border-color: var(--mp-primary, #4f46e5);
	color: var(--mp-primary, #4f46e5);
}
.mp-icon-picker__btn.is-active {
	border-color: var(--mp-primary, #4f46e5);
	background: var(--mp-primary, #4f46e5);
	color: #fff;
}
.mp-icon-picker__btn .mp-icon {
	width: 22px;
	height: 22px;
}

/* In the editor the child block uses RichText placeholders; keep spacing sane */
.editor-styles-wrapper .mp-icon-boxes--grid .mp-icon-box {
	min-height: 120px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.mp-icon-boxes--grid .mp-icon-boxes__items,
	.mp-icon-boxes--grid.mp-cols-4 .mp-icon-boxes__items {
		grid-template-columns: repeat(2, 1fr);
	}
	.mp-icon-boxes--list.mp-icon-boxes--has-image .mp-icon-boxes__inner {
		grid-template-columns: 1fr;
	}
	.mp-icon-boxes--list .mp-icon-boxes__media {
		order: -1;
	}
}

@media (max-width: 480px) {
	.mp-icon-boxes--grid .mp-icon-boxes__items,
	.mp-icon-boxes--grid.mp-cols-2 .mp-icon-boxes__items,
	.mp-icon-boxes--grid.mp-cols-4 .mp-icon-boxes__items {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Shared content box (masplus/shared-box)
   ========================================================= */
.mp-shared-box {
	--mp-sb-primary: var(--mp-primary, #4f46e5);
	--mp-sb-primary-rgb: var(--mp-primary-rgb, 79, 70, 229);
	position: relative;
	margin: 2rem 0;
	padding: 1.4rem 1.6rem;
	background: linear-gradient(
		180deg,
		rgba(var(--mp-sb-primary-rgb), 0.05),
		rgba(var(--mp-sb-primary-rgb), 0.02)
	);
	border: 1px solid rgba(var(--mp-sb-primary-rgb), 0.18);
	border-radius: var(--mp-radius, 14px);
	box-shadow: 0 6px 20px rgba(17, 24, 39, 0.05);
}
.mp-shared-box::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 14px;
	bottom: 14px;
	width: 4px;
	border-radius: 4px;
	background: var(--mp-sb-primary);
}
.mp-shared-box__title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--mp-secondary, #0f172a);
	margin: 0 0 0.7rem;
	padding-inline-start: 0.6rem;
}
.mp-shared-box__content {
	color: var(--mp-text, #0f172a);
	line-height: 1.9;
	padding-inline-start: 0.6rem;
}
.mp-shared-box__content > :first-child {
	margin-top: 0;
}
.mp-shared-box__content > :last-child {
	margin-bottom: 0;
}
.mp-shared-box__content a {
	color: var(--mp-sb-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* =========================================================
   FAQ list (masplus/faq) — always-open simple list
   ========================================================= */
.mp-faq {
	--mp-faq-primary: var(--mp-primary, #4f46e5);
	--mp-faq-primary-rgb: var(--mp-primary-rgb, 79, 70, 229);
	margin: 2rem 0;
}
.mp-faq__title {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 1rem;
	color: var(--mp-secondary, #0f172a);
	padding-bottom: 0;
	border-bottom: 0;
}
.mp-faq__title::before,
.mp-faq__title::after {
	display: none;
}
.mp-faq__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mp-faq__item {
	position: relative;
	padding: 16px 18px;
	background: var(--mp-white, #fff);
	border: 1px solid var(--mp-border, #e2e8f0);
	border-radius: var(--mp-radius-sm, 12px);
	box-shadow: none;
}
.mp-faq__item::before {
	display: none;
}
.mp-faq__item:hover {
	border-color: rgba(var(--mp-faq-primary-rgb), 0.28);
	background: #fafbff;
}
.mp-faq__q {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--mp-secondary, #0f172a);
	margin: 0 0 0.5rem;
	padding-inline-start: 0;
	line-height: 1.6;
}
.mp-faq__q::before {
	content: "";
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background-color: rgba(var(--mp-faq-primary-rgb), 0.1);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
	box-shadow: none;
}
.mp-faq__item:hover .mp-faq__q::before {
	background-color: rgba(var(--mp-faq-primary-rgb), 0.14);
}
.mp-faq__a {
	color: var(--mp-text, #1e293b);
	line-height: 1.85;
	padding-inline-start: calc(28px + 12px);
	margin: 0;
}
.mp-faq__a > :first-child {
	margin-top: 0;
}
.mp-faq__a > :last-child {
	margin-bottom: 0;
}
.mp-faq__a a {
	color: var(--mp-faq-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Keep editor spacing sane */
.editor-styles-wrapper .mp-faq__item {
	min-height: 60px;
}

@media (max-width: 480px) {
	.mp-faq__a {
		padding-inline-start: 0;
	}
	.mp-faq__q {
		align-items: flex-start;
	}
}

/* Editor helper UI */
.mp-shared-box-editor {
	border: 1px dashed rgba(var(--mp-primary-rgb, 79, 70, 229), 0.4);
	border-radius: var(--mp-radius, 14px);
	padding: 12px;
	background: #fff;
}
.mp-shared-box-editor__note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #64748b;
	margin-bottom: 12px;
}
.mp-shared-box-editor__badge {
	display: inline-block;
	background: var(--mp-primary, #4f46e5);
	color: #fff;
	font-weight: 700;
	font-size: 0.72rem;
	padding: 3px 10px;
	border-radius: 999px;
}
.mp-shared-box-editor__link {
	margin-inline-start: auto;
	font-weight: 700;
	color: var(--mp-primary, #4f46e5);
	text-decoration: underline;
}
.mp-shared-box-editor__empty {
	padding: 1.4rem;
	text-align: center;
	color: #9ca3af;
	background: #f9fafb;
	border-radius: var(--mp-radius-sm, 10px);
}

/* =========================================================
   Repair service finder block
   ========================================================= */
.mp-repair-finder {
	margin: 1.25rem 0;
	--mp-rf-primary: var(--mp-primary, #4f46e5);
	--mp-rf-primary-rgb: var(--mp-primary-rgb, 79, 70, 229);
	--mp-rf-phone: #2563eb;
	--mp-rf-phone-hover: #1d4ed8;
}

.mp-repair-finder__card {
	background: linear-gradient(145deg, #fff 0%, #fafbfc 100%);
	border: 1px solid var(--mp-border, #e2e8f0);
	border-radius: 16px;
	padding: 1rem 1.15rem;
	box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
	position: relative;
	overflow: visible;
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
}

.mp-repair-finder__card::before {
	content: '';
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 3px;
	border-radius: 16px 16px 0 0;
	background: linear-gradient(90deg, var(--mp-rf-primary), rgba(var(--mp-rf-primary-rgb), 0.45));
}

.mp-repair-finder__form {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	width: 100%;
}

.mp-repair-finder__field {
	position: relative;
	z-index: 1;
	width: 100%;
}

.mp-repair-finder__field.is-open {
	z-index: 40;
}

.mp-repair-finder__field.is-locked {
	opacity: 0.65;
}

/* Searchable select */
.mp-search-select {
	position: relative;
	width: 100%;
}

.mp-search-select.is-open {
	z-index: 50;
}

.mp-search-select__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	padding: 0.65rem 0.9rem;
	background: #fff;
	border: 1px solid var(--mp-border, #e2e8f0);
	border-radius: 10px;
	font: inherit;
	font-size: 0.94rem;
	line-height: 1.45;
	color: var(--mp-text, #0f172a);
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	text-align: start;
	min-height: 2.65rem;
}

.mp-search-select__trigger:hover:not(:disabled),
.mp-search-select.is-open .mp-search-select__trigger {
	border-color: var(--mp-rf-primary);
	box-shadow: 0 0 0 2px rgba(var(--mp-rf-primary-rgb), 0.1);
}

.mp-search-select__trigger:disabled {
	cursor: not-allowed;
	background: #f9fafb;
}

.mp-search-select__value {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mp-search-select__value.mp-search-select__placeholder {
	color: #9ca3af;
}

.mp-search-select__chevron {
	flex-shrink: 0;
	color: #64748b;
	transition: transform 0.2s ease;
}

.mp-search-select.is-open .mp-search-select__chevron {
	transform: rotate(180deg);
}

.mp-search-select__panel {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 6px);
	z-index: 60;
	background: #fff;
	border: 1px solid var(--mp-border, #e2e8f0);
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
	padding: 0.65rem;
	max-height: min(260px, 45vh);
	flex-direction: column;
}

.mp-search-select__panel[hidden] {
	display: none !important;
}

.mp-search-select.is-open .mp-search-select__panel:not([hidden]) {
	display: flex;
}

.mp-search-select__search {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--mp-border, #e2e8f0);
	border-radius: 10px;
	font: inherit;
	margin-bottom: 0.5rem;
	box-sizing: border-box;
}

.mp-search-select__search:focus {
	outline: none;
	border-color: var(--mp-rf-primary);
	box-shadow: 0 0 0 2px rgba(var(--mp-rf-primary-rgb), 0.15);
}

.mp-search-select__list {
	list-style: none;
	margin: 0;
	padding: 0;
	padding-inline-start: 0;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

.mp-search-select__option {
	padding: 0.6rem 0.75rem;
	padding-inline-start: 0;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.92rem;
	line-height: 1.5;
	transition: background 0.15s ease;
}

.mp-search-select__option:hover,
.mp-search-select__option.is-active {
	background: rgba(var(--mp-rf-primary-rgb), 0.08);
	color: var(--mp-rf-primary);
}

.mp-search-select__option[hidden] {
	display: none;
}

.mp-search-select__empty {
	margin: 0.5rem 0 0;
	padding: 0.5rem;
	text-align: center;
	color: #9ca3af;
	font-size: 0.88rem;
}

.mp-repair-finder__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.15rem;
	width: 100%;
	padding: 0.55rem 1.1rem;
	border: none;
	border-radius: 8px;
	background: var(--mp-rf-primary, var(--mp-primary, #4f46e5));
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.25;
	cursor: pointer;
	box-shadow: none;
	transform: none;
	transition: background 0.2s ease, opacity 0.2s ease;
	position: relative;
	z-index: 0;
	min-height: 0;
}

.mp-repair-finder__submit-icon,
svg.mp-repair-finder__submit-icon {
	display: block;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

.mp-repair-finder__submit-label {
	line-height: 1.25;
}

.mp-repair-finder__submit:hover:not(:disabled) {
	background: color-mix(in srgb, var(--mp-rf-primary, var(--mp-primary, #4f46e5)) 88%, #000);
	transform: none;
	box-shadow: none;
}

.mp-repair-finder__submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.mp-repair-finder__result {
	--mp-rf-info: #2563eb;
	--mp-rf-info-bg: #eff6ff;
	--mp-rf-info-border: #bfdbfe;
	--mp-rf-info-text: #1e3a8a;
	margin-top: 0.85rem;
	padding: 0.9rem 1.1rem;
	border-radius: 10px;
	background: var(--mp-rf-info-bg);
	border: 1px solid var(--mp-rf-info-border);
	color: var(--mp-rf-info-text);
	animation: mp-rf-fade-in 0.35s ease;
	text-align: start;
	width: fit-content;
	max-width: min(100%, 36rem);
	margin-inline: auto;
}

@keyframes mp-rf-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.mp-repair-finder__result-inner {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
}

.mp-repair-finder__result-icon,
svg.mp-repair-finder__result-icon {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	margin-top: 0.15rem;
	color: var(--mp-rf-info);
	stroke: currentColor;
}

.mp-repair-finder__result-text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--mp-rf-info-text);
	font-weight: 500;
}

.mp-repair-finder__result .mp-repair-finder__phone {
	margin-top: 0.85rem;
}

.mp-repair-finder__phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.62rem 1.15rem;
	border-radius: 8px;
	background: var(--mp-rf-phone);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 1rem;
	direction: ltr;
	box-shadow: none;
	border: 1px solid var(--mp-rf-phone);
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.mp-repair-finder__phone:hover {
	background: var(--mp-rf-phone-hover);
	border-color: var(--mp-rf-phone-hover);
	transform: none;
	box-shadow: none;
	color: #fff !important;
}

.mp-repair-finder__phone:active {
	background: #1e40af;
	border-color: #1e40af;
}

.mp-repair-finder__phone-icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

/* Editor preview */
.mp-repair-finder-editor {
	border: 1px dashed #cbd5e1;
	border-radius: 16px;
	padding: 1.5rem;
	background: #f8fafc;
	text-align: center;
}

.mp-repair-finder-editor__title {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
}

.mp-repair-finder-editor__desc {
	margin: 0 0 1rem;
	color: #64748b;
	font-size: 0.9rem;
}

.mp-repair-finder-editor__link {
	display: inline-block;
}

@media (min-width: 768px) {
	.mp-repair-finder__card {
		width: 70%;
		max-width: 70%;
		padding: 1.15rem 1.35rem;
	}

	.mp-repair-finder__form {
		display: grid;
		grid-template-columns: 1fr 1.75fr 1fr;
		gap: 0.75rem 0.85rem;
		align-items: stretch;
		width: 100%;
	}

	.mp-repair-finder__field {
		width: 100%;
		min-width: 0;
	}

	.mp-search-select {
		width: 100%;
	}

	.mp-search-select__trigger {
		width: 100%;
		min-width: 0;
		max-width: none;
		padding: 0.75rem 1rem;
		font-size: 0.98rem;
		min-height: 2.85rem;
	}

	.mp-repair-finder__submit {
		grid-column: 1 / -1;
		width: 100%;
		max-width: 16rem;
		margin-inline: auto;
		margin-top: 0.15rem;
		padding: 0.55rem 1.1rem;
		font-size: 0.95rem;
		min-height: 0;
	}

	.mp-repair-finder__result {
		max-width: 100%;
	}
}

@media (min-width: 1024px) {
	.mp-repair-finder__form {
		grid-template-columns: 1fr 1.75fr 1fr auto;
	}

	.mp-repair-finder__submit {
		grid-column: auto;
		width: auto;
		max-width: none;
		margin-inline: 0;
		margin-top: 0;
		min-width: 7.5rem;
		align-self: stretch;
		white-space: nowrap;
	}
}

@media (max-width: 767px) {
	.mp-repair-finder__card {
		width: 100%;
		max-width: 100%;
	}
}

/* =========================================================
   Hero Header block
   ========================================================= */
.mp-hero-header {
	position: relative;
	z-index: 0;
	overflow: hidden;
	isolation: isolate;
	padding: 2.75rem 0 3rem;
	background:
		radial-gradient(900px 280px at 15% 0%, rgba(var(--mp-primary-rgb, 79, 70, 229), 0.1), transparent 60%),
		linear-gradient(165deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
	border-bottom: 1px solid var(--mp-border, #e2e8f0);
}

.mp-hero-header__inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	/* RTL: pack toward inline-start (right) so text sits next to the image */
	justify-content: flex-start;
	gap: 2.5rem 3rem;
}

.mp-hero-header__content {
	order: 2;
	min-width: 0;
	flex: 0 1 36rem;
	max-width: 36rem;
	text-align: start;
}

.mp-hero-header__media {
	order: 1;
	position: relative;
	flex: 0 1 auto;
	width: fit-content;
	max-width: min(100%, 28rem);
}

.mp-hero-header__title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.75rem, 2.8vw, 2.55rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--mp-secondary, #0f172a);
}

.mp-hero-header__desc {
	margin: 0 0 1.5rem;
	max-width: 34rem;
	font-size: 1.05rem;
	line-height: 1.85;
	color: var(--mp-muted, #64748b);
}

.mp-hero-header__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 0;
	padding: 0.55rem 1.1rem;
	line-height: 1.25;
	overflow: hidden;
	isolation: isolate;
	border: none;
	border-radius: 8px;
	background: var(--mp-primary, #4f46e5);
	color: #fff !important;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	box-shadow: none;
	transition: background 0.25s ease, color 0.25s ease;
}

.mp-hero-header__btn::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: -40%;
	width: 40%;
	background: linear-gradient(
		105deg,
		transparent 0%,
		rgba(255, 255, 255, 0.08) 35%,
		rgba(255, 255, 255, 0.45) 50%,
		rgba(255, 255, 255, 0.08) 65%,
		transparent 100%
	);
	transform: translateX(0);
	opacity: 0;
	pointer-events: none;
	z-index: 0;
}

.mp-hero-header__btn-icon,
.mp-hero-header__btn-label {
	position: relative;
	z-index: 1;
	transition: transform 0.28s ease;
}

.mp-hero-header__btn-label {
	display: inline-block;
	line-height: 1.25;
}

/* Match icon box to the button text size (1em = current font-size). */
.mp-hero-header__btn-icon,
svg.mp-hero-header__btn-icon {
	display: block;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	overflow: visible;
}

.mp-hero-header__btn-icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

.mp-hero-header__btn:hover {
	background: color-mix(in srgb, var(--mp-primary, #4f46e5) 88%, #000);
	color: #fff !important;
	box-shadow: none;
	transform: none;
}

.mp-hero-header__btn:hover::before {
	opacity: 1;
	animation: mp-hero-btn-shine 0.75s ease forwards;
}

.mp-hero-header__btn:hover .mp-hero-header__btn-icon,
.mp-hero-header__btn:hover .mp-hero-header__btn-label {
	transform: translateY(-1px);
}

@keyframes mp-hero-btn-shine {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(calc(var(--mp-shine-dir, 1) * 320%));
	}
}

[dir="rtl"] .mp-hero-header__btn {
	--mp-shine-dir: -1;
}

@media (prefers-reduced-motion: reduce) {
	.mp-hero-header__btn::before {
		display: none;
	}

	.mp-hero-header__btn:hover .mp-hero-header__btn-icon,
	.mp-hero-header__btn:hover .mp-hero-header__btn-label {
		transform: none;
	}
}

.mp-hero-header__media::after {
	content: "";
	position: absolute;
	inset: 10% -8% -8% 14%;
	border-radius: 28px;
	background: rgba(var(--mp-primary-rgb, 79, 70, 229), 0.12);
	z-index: 0;
}

.mp-hero-header__img {
	position: relative;
	z-index: 1;
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	border-radius: 24px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.mp-hero-header__placeholder {
	display: grid;
	place-items: center;
	min-height: 220px;
	padding: 1.5rem;
	border: 1px dashed var(--mp-border, #e2e8f0);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.7);
	color: var(--mp-muted, #64748b);
	text-align: center;
}

.mp-hero-header__hint {
	margin: 0;
	font-size: 0.88rem;
	color: var(--mp-muted, #64748b);
}

/* Appear animations */
.mp-hero-header:not(.mp-hero-header--editor) .mp-hero-header__content > *,
.mp-hero-header:not(.mp-hero-header--editor) .mp-hero-header__media {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.mp-hero-header:not(.mp-hero-header--editor) .mp-hero-header__media {
	transform: translateX(-22px) scale(0.98);
}

.mp-hero-header:not(.mp-hero-header--editor) .mp-hero-header__title {
	transition-delay: 0.05s;
}

.mp-hero-header:not(.mp-hero-header--editor) .mp-hero-header__desc {
	transition-delay: 0.16s;
}

.mp-hero-header:not(.mp-hero-header--editor) .mp-hero-header__btn {
	transition-delay: 0.28s;
}

.mp-hero-header:not(.mp-hero-header--editor) .mp-hero-header__media {
	transition-delay: 0.12s;
}

.mp-hero-header.is-visible .mp-hero-header__content > *,
.mp-hero-header.is-visible .mp-hero-header__media {
	opacity: 1;
	transform: none;
}

.mp-hero-header--editor {
	border: 1px dashed rgba(var(--mp-primary-rgb, 79, 70, 229), 0.35);
	border-radius: 16px;
	margin: 0.5rem 0;
}

.mp-hero-header--editor .mp-hero-header__inner {
	padding-inline: 1rem;
}

@media (max-width: 900px) {
	.mp-hero-header__inner {
		flex-direction: column;
		justify-content: center;
		gap: 1.75rem;
	}

	/* Mobile: image first, then text. */
	.mp-hero-header__media {
		order: 1;
		max-width: min(100%, 22rem);
	}

	.mp-hero-header__content {
		order: 2;
		flex: 1 1 auto;
		max-width: none;
		text-align: center;
	}

	.mp-hero-header__img {
		margin-inline: auto;
	}

	.mp-hero-header__desc {
		max-width: none;
	}

	.mp-hero-header__btn {
		margin-inline: auto;
	}

	/* Avoid transform stacking over the sticky header on mobile. */
	.mp-hero-header:not(.mp-hero-header--editor) .mp-hero-header__content > *,
	.mp-hero-header:not(.mp-hero-header--editor) .mp-hero-header__media {
		transform: none;
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mp-hero-header:not(.mp-hero-header--editor) .mp-hero-header__content > *,
	.mp-hero-header:not(.mp-hero-header--editor) .mp-hero-header__media {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
