/*
 * AS Loyverse Sync — the notify-me form and the new-arrivals sign-up form (1.21.0).
 *
 * Handle `asls-notify`, depends on `asls-forms-base` (tokens, fields, the
 * honeypot, the status line, the success panel, 54 px targets). This sheet
 * only lays out what is specific to these two forms:
 *
 *   - .asls-notify     the product-page <details> (collapsed under the
 *                      reservation form, open otherwise) and the Arriving
 *                      page's dialog body;
 *   - .asls-newsletter the sign-up block (Arriving page when nothing is
 *                      listed, or any page that renders it).
 *
 * Every selector is scoped under .asls-notify or .asls-newsletter. Logical
 * properties only, so the same rules serve right-to-left Arabic and
 * left-to-right pages. No @layer, no !important.
 */

/* ---------------------------------------------------------------------- */
/* Notify-me on the product page                                           */
/* ---------------------------------------------------------------------- */

.asls-notify {
	--asls-notify-navy: var(--as-navy, #1f2a5c);
	--asls-notify-border: var(--as-border, #e4e3dc);
	--asls-notify-cream: var(--as-cream, #faf8f3);
	--asls-notify-muted: var(--as-muted, #5f6478);

	margin-block: 16px;
	border: 1px solid var(--asls-notify-border);
	border-radius: 10px;
	background: #fff;
}

.asls-notify.asls-notify--dialog {
	margin-block: 0;
	border: 0;
	background: transparent;
}

.asls-notify .asls-notify__summary {
	display: flex;
	align-items: center;
	gap: 10px;
	min-block-size: 54px;
	padding-block: 10px;
	padding-inline: 16px;
	color: var(--asls-notify-navy);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.asls-notify .asls-notify__summary::-webkit-details-marker {
	display: none;
}

/* A small down-pointing triangle: no icon font, the same in both directions. */
.asls-notify .asls-notify__summary::after {
	content: "";
	flex: none;
	inline-size: 12px;
	block-size: 7px;
	margin-inline-start: auto;
	background: currentColor;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transition: transform 0.15s ease;
}

.asls-notify[open] > .asls-notify__summary::after {
	transform: rotate(180deg);
}

.asls-notify .asls-notify__summary:focus-visible {
	outline: 3px solid var(--asls-notify-navy);
	outline-offset: 2px;
	border-radius: 10px;
}

/* The secondary choice under the reservation form reads quieter. */
.asls-notify.asls-notify--secondary {
	border-style: dashed;
	background: var(--asls-notify-cream);
}

.asls-notify.asls-notify--secondary .asls-notify__summary {
	font-weight: 600;
}

.asls-notify .asls-notify__body {
	padding-block: 4px 16px;
	padding-inline: 16px;
}

.asls-notify.asls-notify--dialog .asls-notify__body {
	padding: 0;
}

.asls-notify .asls-notify__optin {
	margin-block: 4px 12px;
}

.asls-notify .asls-notify__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-block-size: 44px;
	cursor: pointer;
}

.asls-notify .asls-notify__check input[type="checkbox"] {
	flex: none;
	inline-size: 22px;
	block-size: 22px;
	margin-block: 2px 0;
	margin-inline: 0;
	accent-color: var(--asls-notify-navy);
}

.asls-notify .asls-notify__consent {
	margin-block: 0 14px;
	color: var(--asls-notify-muted);
	font-size: 0.875em;
	line-height: 1.5;
}

.asls-notify .asls-notify__consent a {
	color: var(--asls-notify-navy);
	text-decoration: underline;
}

.asls-notify .asls-notify__typo:not([hidden]) {
	display: block;
	color: var(--asls-notify-navy);
	font-weight: 600;
}

.asls-notify .asls-form__submit {
	inline-size: 100%;
}

@media (min-width: 560px) {
	.asls-notify .asls-form__submit {
		inline-size: auto;
	}
}

/* ---------------------------------------------------------------------- */
/* The new-arrivals sign-up block                                          */
/* ---------------------------------------------------------------------- */

.asls-newsletter {
	--asls-nl-navy: var(--as-navy, #1f2a5c);
	--asls-nl-border: var(--as-border, #e4e3dc);
	--asls-nl-cream: var(--as-cream, #faf8f3);
	--asls-nl-muted: var(--as-muted, #5f6478);

	box-sizing: border-box;
	max-inline-size: 640px;
	margin-block: 24px;
	margin-inline: auto;
	padding-block: 20px;
	padding-inline: 20px;
	border: 1px solid var(--asls-nl-border);
	border-radius: 12px;
	background: var(--asls-nl-cream);
}

.asls-newsletter .asls-newsletter__title {
	margin-block: 0 6px;
	color: var(--asls-nl-navy);
	font-size: 1.25em;
	line-height: 1.3;
}

.asls-newsletter .asls-newsletter__text {
	margin-block: 0 14px;
	color: var(--asls-nl-muted);
}

.asls-newsletter .asls-newsletter__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.asls-newsletter .asls-newsletter__row input[type="email"] {
	flex: 1 1 220px;
	inline-size: auto;
	min-inline-size: 0;
}

.asls-newsletter .asls-newsletter__row .asls-form__submit {
	flex: 0 0 auto;
}

.asls-newsletter .asls-newsletter__consent {
	margin-block: 10px 0;
	color: var(--asls-nl-muted);
	font-size: 0.875em;
	line-height: 1.5;
}

.asls-newsletter .asls-newsletter__consent a {
	color: var(--asls-nl-navy);
	text-decoration: underline;
}

.asls-newsletter .asls-notify__typo:not([hidden]) {
	display: block;
	color: var(--asls-nl-navy);
	font-weight: 600;
}

@media (max-width: 380px) {
	.asls-newsletter .asls-newsletter__row .asls-form__submit {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.asls-notify .asls-notify__summary::after {
		transition: none;
	}
}
