/* SHB Core: wish maker, send panel and wish page.
   Selectors start with "html body" so Elementor's kit button and form styles cannot leak in. */

html body .shb-maker,
html body .shb-wish {
	--shb-gold: var(--e-global-color-primary, #f6c46e);
	--shb-gold-light: var(--e-global-color-shbgoldlight, #ffe9b8);
	--shb-ink: var(--e-global-color-text, #f7f2e9);
	--shb-dim: var(--e-global-color-shbdim, rgba(255, 255, 255, 0.72));
	--shb-night: var(--e-global-color-shbnight, #100b24);
	--shb-panel: var(--e-global-color-shbpanel, rgba(255, 255, 255, 0.08));
	--shb-line: var(--e-global-color-shbline, rgba(255, 255, 255, 0.16));
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
	color: var(--shb-ink);
	box-sizing: border-box;
}

html body .shb-maker *,
html body .shb-wish * {
	box-sizing: border-box;
}

/* ---------- The form ---------- */

html body .shb-form,
html body .shb-send {
	padding: 28px 24px;
	border: 1px solid var(--shb-line);
	border-radius: 22px;
	background: var(--shb-panel);
	backdrop-filter: blur(6px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html body .shb-form[hidden],
html body .shb-send[hidden],
html body .shb-maker [hidden] {
	display: none;
}

html body .shb-field {
	margin: 0 0 20px;
}

html body .shb-row {
	display: grid;
	grid-template-columns: 7rem 1fr;
	align-items: end;
	gap: 16px;
}

html body .shb-maker label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
	font-size: 1rem;
	color: var(--shb-ink);
}

html body .shb-optional {
	font-weight: 400;
	color: var(--shb-dim);
}

html body .shb-maker input,
html body .shb-maker select,
html body .shb-maker textarea {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--shb-line);
	border-radius: 14px;
	background: rgba(16, 11, 36, 0.65);
	color: var(--shb-ink);
	font: inherit;
	font-size: 1.0625rem; /* 17px: big enough that phones do not zoom in */
	line-height: 1.4;
	box-shadow: none;
}

html body .shb-maker textarea {
	resize: vertical;
	min-height: 96px;
}

html body .shb-maker select {
	appearance: none;
	padding-right: 44px;
	background-image: linear-gradient(45deg, transparent 50%, var(--shb-gold) 50%), linear-gradient(135deg, var(--shb-gold) 50%, transparent 50%);
	background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

html body .shb-maker select option {
	background: var(--shb-night);
	color: var(--shb-ink);
}

html body .shb-maker ::placeholder {
	color: rgba(255, 255, 255, 0.42);
	opacity: 1;
}

html body .shb-maker input:focus,
html body .shb-maker select:focus,
html body .shb-maker textarea:focus {
	border-color: var(--shb-gold);
	outline: none;
	box-shadow: 0 0 0 3px rgba(246, 196, 110, 0.35);
}

html body .shb-maker input[aria-invalid="true"] {
	border-color: #ff8fa3;
}

html body .shb-error {
	margin: 8px 0 0;
	color: #ffb3c0;
	font-weight: 600;
}

html body .shb-count {
	margin: 6px 0 0;
	text-align: right;
	font-size: 0.875rem;
	color: var(--shb-dim);
}

html body .shb-maker .shb-make {
	display: block;
	width: 100%;
	min-height: 56px;
	margin: 8px 0 0;
	padding: 14px 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #ffd88e, var(--shb-gold));
	color: var(--shb-night);
	font: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(246, 196, 110, 0.3);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

html body .shb-maker .shb-make:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 36px rgba(246, 196, 110, 0.42);
	color: var(--shb-night);
}

/* ---------- The send panel ---------- */

html body .shb-send {
	text-align: center;
	scroll-margin-top: 24px;
}

html body .shb-send:focus {
	outline: none;
}

html body .shb-send__title {
	margin: 0 0 6px;
	font-family: var(--e-global-typography-primary-font-family, "Playfair Display"), Georgia, serif;
	font-size: clamp(1.5rem, 5vw, 2rem);
	font-weight: 400;
	line-height: 1.25;
	color: var(--shb-ink);
}

html body .shb-send__title span {
	color: var(--shb-gold);
}

html body .shb-send__lead {
	margin: 0 0 20px;
	color: var(--shb-dim);
}

html body .shb-send__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

html body .shb-maker .shb-sendbtn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--shb-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--shb-ink);
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

html body .shb-maker .shb-sendbtn:hover {
	border-color: var(--shb-gold);
	background: rgba(246, 196, 110, 0.12);
	color: var(--shb-ink);
}

html body .shb-maker .shb-sendbtn--wa {
	grid-column: 1 / -1;
	border-color: transparent;
	background: #1fa855;
	color: #fff;
}

html body .shb-maker .shb-sendbtn--wa:hover {
	border-color: transparent;
	background: #23bd60;
	color: #fff;
}

html body .shb-maker .shb-sendbtn--copy,
html body .shb-maker .shb-sendbtn--native {
	grid-column: 1 / -1;
}

html body .shb-copied {
	min-height: 1.6em;
	margin: 10px 0 4px;
	color: var(--shb-gold-light);
	font-weight: 600;
}

html body .shb-maker .shb-link-label {
	margin-top: 4px;
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--shb-dim);
}

html body .shb-maker .shb-link {
	min-height: 46px;
	font-size: 0.9375rem;
	text-align: center;
	color: var(--shb-dim);
}

html body .shb-send__more {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 24px;
	margin: 18px 0 0;
}

html body .shb-send__more a,
html body .shb-maker .shb-again {
	padding: 6px 2px;
	border: 0;
	background: none;
	color: var(--shb-gold);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

html body .shb-maker .shb-again:hover {
	background: none;
	color: var(--shb-gold-light);
}

/* ---------- The wish page ---------- */

html body .shb-wish {
	max-width: 720px;
	padding: 40px 0;
	text-align: center;
}

html body .shb-wish__greeting {
	margin: 0 0 8px;
	font-family: var(--e-global-typography-primary-font-family, "Playfair Display"), Georgia, serif;
	font-size: clamp(1.75rem, 6vw, 2.75rem);
	line-height: 1.3;
	color: var(--shb-ink);
}

html body .shb-wish .shb-wish__name {
	margin: 0 0 18px;
	font-family: var(--e-global-typography-primary-font-family, "Playfair Display"), Georgia, serif;
	font-size: clamp(2.75rem, 12vw, 5.5rem);
	font-weight: 400;
	line-height: 1.1;
	/* Room for the tails of g, y, p and j: the gold is painted inside this box only. */
	padding: 0.06em 0.12em 0.24em;
	margin-bottom: calc(18px - 0.24em);
	overflow-wrap: anywhere;
	background: linear-gradient(180deg, #fff3cf 0%, var(--shb-gold) 55%, #d9a75c 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 24px rgba(246, 196, 110, 0.28));
}

html body .shb-wish__say {
	max-width: 32rem;
	margin: 0 auto 22px;
	color: var(--shb-dim);
	font-size: 0.9375rem;
}

html body .shb-wish__sound {
	display: inline-block;
	color: var(--shb-gold-light);
	font-weight: 600;
}

html body .shb-wish__age {
	margin: 0 0 22px;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--shb-gold-light);
}

html body .shb-wish__message {
	max-width: 30rem;
	margin: 0 auto 22px;
	padding: 20px 24px;
	border: 1px solid var(--shb-line);
	border-radius: 18px;
	background: var(--shb-panel);
	font-size: 1.1875rem;
	font-style: italic;
	overflow-wrap: anywhere;
}

html body .shb-wish__message p {
	margin: 0;
}

html body .shb-wish__from {
	margin: 0 0 36px;
	font-size: 1.125rem;
	color: var(--shb-ink);
}

html body .shb-wish__from span {
	color: var(--shb-gold);
	font-weight: 600;
}

html body .shb-wish__again a {
	color: var(--shb-gold);
	font-weight: 600;
	text-underline-offset: 3px;
}

html body .shb-wish__lost {
	margin: 0 0 20px;
	font-size: 1.125rem;
}

@media (max-width: 420px) {
	html body .shb-form,
	html body .shb-send {
		padding: 22px 16px;
	}
	html body .shb-row {
		grid-template-columns: 5.5rem 1fr;
		gap: 12px;
	}
}

/* ---------- What they will see (under the language list) ---------- */

html body .shb-preview {
	margin: 8px 0 0;
	font-size: 0.9375rem;
	color: var(--shb-dim);
}

html body .shb-preview__greeting {
	color: var(--shb-gold);
	font-weight: 600;
}

html body .shb-preview__say {
	display: block;
	margin-top: 2px;
}

html body .shb-preview__say span {
	color: var(--shb-gold-light);
	font-weight: 600;
}

/* ---------- Language menu ---------- */

html body .shb-langbar {
	position: relative;
	z-index: 50;
	display: flex;
	justify-content: flex-end;
	padding: 12px 20px 0;
}

html body .shb-langs {
	--shb-gold: var(--e-global-color-primary, #f6c46e);
	--shb-ink: var(--e-global-color-text, #f7f2e9);
	--shb-line: var(--e-global-color-shbline, rgba(255, 255, 255, 0.16));
	position: relative;
	font-family: var(--e-global-typography-text-font-family, "Inter"), system-ui, sans-serif;
}

html body .shb-langs .shb-langs__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--shb-line);
	border-radius: 999px;
	background: rgba(16, 11, 36, 0.7);
	color: var(--shb-ink);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
}

html body .shb-langs .shb-langs__button:hover,
html body .shb-langs .shb-langs__button[aria-expanded="true"] {
	border-color: var(--shb-gold);
	background: rgba(246, 196, 110, 0.12);
	color: var(--shb-ink);
}

html body .shb-langs__icon {
	color: var(--shb-gold);
	flex: none;
}

html body .shb-langs__caret {
	flex: none;
	transition: transform 0.15s ease;
}

html body .shb-langs__button[aria-expanded="true"] .shb-langs__caret {
	transform: rotate(180deg);
}

html body .shb-langs__panel {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-end: 0;
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	padding: 18px;
	border: 1px solid var(--shb-line);
	border-radius: 20px;
	background: #1b1038;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

html body .shb-langs__panel[hidden] {
	display: none;
}

html body .shb-langs__title {
	margin: 0 0 12px;
	color: var(--shb-ink);
	font-weight: 600;
}

html body .shb-langs__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .shb-langs .shb-langs__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 8px 10px;
	border: 1px solid var(--shb-line);
	border-radius: 12px;
	color: var(--shb-ink);
	font-size: 1.0625rem;
	text-align: center;
	text-decoration: none;
	line-height: 1.25;
}

html body .shb-langs .shb-langs__item:hover {
	border-color: var(--shb-gold);
	background: rgba(246, 196, 110, 0.1);
	color: var(--shb-ink);
}

html body .shb-langs .shb-langs__item[aria-current] {
	border-color: var(--shb-gold);
	background: var(--shb-gold);
	color: #100b24;
	font-weight: 700;
}

html body .shb-langs .shb-langs__close {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 14px 0 0;
	padding: 8px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--shb-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

html body .shb-langs .shb-langs__close:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--shb-ink);
}

@media (max-width: 600px) {
	html body .shb-langbar {
		padding: 10px 16px 0;
	}
	html body .shb-langs__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---------- Right-to-left pages (Arabic, Urdu) ---------- */

html[dir="rtl"] body .shb-count {
	text-align: left;
}

html[dir="rtl"] body .shb-maker select {
	padding-right: 16px;
	padding-left: 44px;
	background-position: 16px 50%, 22px 50%;
}

/* ---------- Search inside the language list ---------- */

html body .shb-langs .shb-langs__search {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0 0 12px;
	padding: 10px 16px;
	border: 1px solid var(--shb-line);
	border-radius: 12px;
	background: rgba(16, 11, 36, 0.8);
	color: var(--shb-ink);
	font: inherit;
	font-size: 1.0625rem;
	box-shadow: none;
}

html body .shb-langs .shb-langs__search:focus {
	border-color: var(--shb-gold);
	outline: none;
	box-shadow: 0 0 0 3px rgba(246, 196, 110, 0.35);
}

html body .shb-langs .shb-langs__search::placeholder {
	color: rgba(255, 255, 255, 0.45);
	opacity: 1;
}

html body .shb-langs__list li[hidden] {
	display: none;
}

html body .shb-langs__none {
	margin: 4px 0 0;
	color: var(--e-global-color-shbgoldlight, #ffe9b8);
}

/* ---------- The big "Choose your language" box above the cake ---------- */

html body .shb-langs--big {
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
	padding: 20px 20px 18px;
	border: 2px solid var(--shb-gold);
	border-radius: 22px;
	background: rgba(16, 11, 36, 0.55);
	text-align: center;
	box-shadow: 0 0 40px rgba(246, 196, 110, 0.12);
}

html body .shb-langs__lead {
	margin: 0 0 12px;
	color: var(--shb-ink);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

html body .shb-langs--big .shb-langs__button {
	min-height: 56px;
	padding: 10px 26px;
	border: 2px solid var(--shb-gold);
	font-size: 1.25rem;
}

html body .shb-langs--big .shb-langs__icon {
	width: 24px;
	height: 24px;
}

html body .shb-langs__sample {
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 1rem;
	line-height: 1.8;
}

html body .shb-langs__sample a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	white-space: nowrap;
}

html body .shb-langs__sample a:hover {
	color: var(--shb-gold);
	text-decoration: underline;
}

html body .shb-langs .shb-langs__more {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--shb-gold);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	white-space: nowrap;
}

html body .shb-langs .shb-langs__more:hover {
	background: none;
	color: var(--e-global-color-shbgoldlight, #ffe9b8);
}

/* The big box's list opens centred under it, on top of the page. */
html body .shb-langs--big .shb-langs__panel {
	z-index: 60;
	inset-inline-end: auto;
	left: 50%;
	transform: translateX(-50%);
	text-align: start;
}

html body .shb-langs--big .shb-langs__item {
	font-size: 1.0625rem;
}

@media (max-width: 600px) {
	html body .shb-langs--big {
		padding: 16px 14px;
	}
	html body .shb-langs__lead {
		font-size: 1.125rem;
	}
}

/* ---------- Who is it for? (child / adult) ---------- */

html body .shb-who {
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	min-width: 0;
}

html body .shb-who legend {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	font-weight: 600;
	font-size: 1rem;
	color: var(--shb-ink);
}

html body .shb-who__options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

html body .shb-maker .shb-who__option {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 60px;
	margin: 0;
	padding: 10px 12px;
	border: 2px solid var(--shb-line);
	border-radius: 16px;
	background: rgba(16, 11, 36, 0.65);
	color: var(--shb-ink);
	font-size: 1.0625rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

html body .shb-maker .shb-who__option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	min-height: 0;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

html body .shb-who__icon {
	font-size: 1.5rem;
	line-height: 1;
}

html body .shb-maker .shb-who__option:hover {
	border-color: rgba(246, 196, 110, 0.6);
}

html body .shb-maker .shb-who__option:has(input:checked) {
	border-color: var(--shb-gold);
	background: rgba(246, 196, 110, 0.14);
}

html body .shb-maker .shb-who__option:has(input:focus-visible) {
	outline: 3px solid var(--shb-gold);
	outline-offset: 3px;
}
