.rtsm-notice[hidden],
.rtsm-dialog[hidden] {
	display: none !important;
}

.rtsm-notice,
.rtsm-notice *,
.rtsm-dialog,
.rtsm-dialog * {
	box-sizing: border-box;
}

/* Strong inline fallback for browsers without native dialog support. */
.rtsm-notice {
	position: relative;
	z-index: 20;
	width: min(calc(100% - 32px), 780px);
	margin: 28px auto;
	color: var(--rt-ivory, #f5f2ea);
	font-family: var(--rt-sans, "Helvetica Neue", Arial, sans-serif);
}

.rtsm-dialog-supported .rtsm-notice--fallback:not(.rtsm-notice--acknowledged) {
	display: none !important;
}

.rtsm-notice__inner {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	padding: 26px 28px;
	overflow: hidden;
	background:
		radial-gradient(circle at 8% 0, rgba(216, 185, 104, 0.15), transparent 38%),
		linear-gradient(145deg, #211f1a, #151514);
	border: 2px solid var(--rt-gold-soft, #d8b968);
	border-radius: 16px;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.rtsm-notice__icon,
.rtsm-dialog__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	max-width: 54px;
	max-height: 54px;
	flex: 0 0 54px;
	overflow: hidden;
	border: 2px solid var(--rt-gold-soft, #d8b968);
	border-radius: 50%;
	background: rgba(216, 185, 104, 0.13);
	color: var(--rt-gold-soft, #d8b968);
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 0 26px rgba(216, 185, 104, 0.2);
}

.rtsm-notice__content {
	min-width: 0;
}

.rtsm-notice__eyebrow {
	margin: 0 0 5px !important;
	color: var(--rt-gold-soft, #d8b968);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.rtsm-notice__acknowledged-label {
	display: none;
	margin-left: 8px;
	padding: 3px 7px;
	border: 1px solid rgba(216, 185, 104, 0.5);
	border-radius: 999px;
	background: rgba(216, 185, 104, 0.1);
	font-size: 9px;
	letter-spacing: 0.09em;
}

.rtsm-notice--acknowledged .rtsm-notice__acknowledged-label {
	display: inline-flex;
}

.rtsm-notice__headline {
	display: block;
	margin: 0 0 10px;
	color: var(--rt-ivory, #f5f2ea);
	font-family: var(--rt-serif-display, Georgia, serif);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.15;
}

.rtsm-notice p {
	margin: 0 !important;
}

.rtsm-notice__message {
	color: #c9c4b8;
	font-size: 14px;
	line-height: 1.6;
}

.rtsm-notice__details {
	margin-top: 13px !important;
	padding: 12px 14px;
	border-left: 4px solid var(--rt-gold, #c9a24b);
	background: rgba(201, 162, 75, 0.09);
	color: var(--rt-ivory, #f5f2ea);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.55;
}

.rtsm-notice__recommendation {
	margin-top: 10px !important;
	color: #ead79e;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.55;
}

.rtsm-notice--checkout {
	margin-bottom: 24px;
}

/* Native modal acknowledgement. */
.rtsm-dialog {
	position: fixed;
	inset: 0;
	width: calc(100% - 28px);
	max-width: 720px;
	max-height: calc(100vh - 28px);
	max-height: calc(100dvh - 28px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 2px solid rgba(216, 185, 104, 0.88);
	border-radius: 18px;
	background: #1b1b1a;
	color: var(--rt-ivory, #f5f2ea);
	box-shadow:
		0 35px 110px rgba(0, 0, 0, 0.82),
		inset 0 1px rgba(255, 255, 255, 0.05);
	font-family: var(--rt-sans, "Helvetica Neue", Arial, sans-serif);
	color-scheme: dark;
}

.rtsm-dialog::backdrop {
	background: rgba(3, 3, 3, 0.9);
	-webkit-backdrop-filter: blur(7px) saturate(0.65);
	backdrop-filter: blur(7px) saturate(0.65);
}

.rtsm-dialog__surface {
	position: relative;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	padding: 32px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background:
		radial-gradient(circle at 10% 0, rgba(216, 185, 104, 0.16), transparent 38%),
		linear-gradient(145deg, #211f1a, #151514);
}

.rtsm-dialog__surface::before {
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, transparent, var(--rt-gold-soft, #d8b968), transparent);
	content: "";
}

.rtsm-dialog__heading {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
}

.rtsm-dialog__eyebrow {
	margin: 0 0 6px !important;
	color: var(--rt-gold-soft, #d8b968);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.rtsm-dialog__title {
	margin: 0;
	color: var(--rt-ivory, #f5f2ea);
	font-family: var(--rt-serif-display, Georgia, serif);
	font-size: clamp(29px, 5vw, 40px);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: -0.02em;
}

.rtsm-dialog__title:focus {
	outline: 2px solid rgba(216, 185, 104, 0.72);
	outline-offset: 4px;
}

.rtsm-dialog__intro {
	margin: 20px 0 0 !important;
	color: #d1ccc1;
	font-size: 15px;
	line-height: 1.65;
}

.rtsm-dialog__period {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 22px 0 0;
}

.rtsm-dialog__period > div {
	min-width: 0;
	padding: 15px;
	border: 1px solid rgba(216, 185, 104, 0.3);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.04);
}

.rtsm-dialog__period dt {
	margin: 0 0 5px;
	color: var(--rt-muted, #9a958a);
	font-size: 10px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.rtsm-dialog__period dd {
	margin: 0;
	color: var(--rt-gold-soft, #d8b968);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.rtsm-dialog__impact {
	margin: 20px 0 0 !important;
	color: var(--rt-ivory, #f5f2ea);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
}

.rtsm-dialog__recommendation {
	margin: 11px 0 0 !important;
	padding: 13px 15px;
	border-left: 4px solid var(--rt-gold, #c9a24b);
	background: rgba(201, 162, 75, 0.1);
	color: #ead79e;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
}

.rtsm-dialog__extra {
	margin: 11px 0 0 !important;
	color: var(--rt-muted, #9a958a);
	font-size: 13px;
	line-height: 1.55;
}

.rtsm-dialog__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 24px 0 0;
}

.rtsm-dialog__confirm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 270px;
	min-height: 50px;
	padding: 13px 22px;
	border: 1px solid #e0bd69;
	border-radius: 999px;
	background: linear-gradient(180deg, #e0c477, #bd9136);
	color: #111110;
	font: 800 14px/1.25 var(--rt-sans, "Helvetica Neue", Arial, sans-serif);
	letter-spacing: 0.02em;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 9px 24px rgba(0, 0, 0, 0.35);
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rtsm-dialog__confirm:hover {
	transform: translateY(-1px);
	background: linear-gradient(180deg, #f0d995, #c9a24b);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

.rtsm-dialog__confirm:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

.rtsm-dialog__action-note {
	color: var(--rt-muted, #9a958a);
	font-size: 12px;
	line-height: 1.45;
}

html.rtsm-dialog-open,
html.rtsm-dialog-open body {
	overflow: hidden !important;
}

html.rtsm-dialog-open {
	scrollbar-gutter: stable;
}

.rtsm-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 599px) {
	.rtsm-notice {
		width: calc(100% - 24px);
		margin: 18px auto;
	}

	.rtsm-notice__inner {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 14px;
		padding: 20px 18px;
		border-radius: 13px;
	}

	.rtsm-notice__icon,
	.rtsm-dialog__icon {
		width: 44px;
		height: 44px;
		max-width: 44px;
		max-height: 44px;
		flex-basis: 44px;
		font-size: 24px;
	}

	.rtsm-notice__headline {
		font-size: 21px;
	}

	.rtsm-dialog {
		width: calc(100% - 20px);
		max-height: calc(100vh - 20px);
		max-height: calc(100dvh - 20px);
		border-radius: 14px;
	}

	.rtsm-dialog__surface {
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		padding: 23px 20px;
	}

	.rtsm-dialog__heading {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 13px;
	}

	.rtsm-dialog__title {
		font-size: clamp(25px, 8vw, 32px);
	}

	.rtsm-dialog__intro {
		margin-top: 16px !important;
		font-size: 14px;
	}

	.rtsm-dialog__period {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
		margin-top: 18px;
	}

	.rtsm-dialog__period > div {
		padding: 12px;
	}

	.rtsm-dialog__period .rtsm-dialog__delay {
		grid-column: 1 / -1;
	}

	.rtsm-dialog__period dd {
		font-size: 15px;
	}

	.rtsm-dialog__impact,
	.rtsm-dialog__recommendation {
		font-size: 14px;
	}

	.rtsm-dialog__actions {
		display: block;
		margin-top: 20px;
	}

	.rtsm-dialog__confirm {
		width: 100%;
		min-width: 0;
	}

	.rtsm-dialog__action-note {
		display: block;
		margin-top: 10px;
		text-align: center;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.rtsm-dialog[open] {
		animation: rtsm-dialog-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	@keyframes rtsm-dialog-in {
		from {
			opacity: 0;
			transform: translateY(14px) scale(0.985);
		}
	}
}

@media (forced-colors: active) {
	.rtsm-notice__inner,
	.rtsm-dialog {
		border: 2px solid CanvasText;
	}

	.rtsm-dialog__confirm {
		border: 2px solid ButtonText;
	}

	.rtsm-dialog__recommendation,
	.rtsm-notice__details {
		border-left-color: CanvasText;
	}
}
