/*
 * Astro Member Portal — Guest-facing frontend.
 * Scoped dưới .amp-portal — không style global theme.
 */

.amp-portal {
	--amp-linen: #fcf9f4;
	--amp-white: #ffffff;
	--amp-terracotta: #9e4a1e;
	--amp-terracotta-deep: #823c16;
	--amp-terracotta-active: #6e3312;
	--amp-terracotta-tint: #fdf4ed;
	--amp-aegean: #13426b;
	--amp-sand-low: #f7f3eb;
	--amp-sand-high: #ede7dc;
	--amp-sand-border: #dbcfc0;
	--amp-text: #1c1917;
	--amp-text-muted: #57534e;
	--amp-text-tertiary: #a8a29e;
	--amp-shadow-silk: 0 1px 3px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(28, 25, 23, 0.04);
	--amp-card-border: #e8e6e3;
	--amp-font-display: 'Prata', 'EB Garamond', Georgia, serif;
	--amp-font-body: 'Lora', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	--amp-radius-card: 16px;
	--amp-radius-card-lg: 24px;
	--amp-radius-pill: 9999px;
	box-sizing: border-box;
	max-width: 600px;
	margin: 0 auto;
	padding: 12px 16px 28px;
	background-color: transparent;
	color: var(--amp-text);
	font-family: var(--amp-font-body);
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

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

/* Anonymous gate — full-height feel on mobile */
.amp-portal.amp-state-anonymous {
	display: flex;
	flex-direction: column;
	min-height: 60vh;
	max-width: 480px;
}

.amp-portal.amp-state-anonymous .amp-portal-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Greeting — nội dung chính, không phải site header */
.amp-greeting {
	text-align: center;
	margin: 0;
	padding: 4px 0 0;
}

.amp-greeting-title {
	margin: 0;
	font-family: var(--amp-font-display);
	font-size: clamp(1.75rem, 5vw, 2.125rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--amp-text);
	text-align: center;
}

/* Main stack */
.amp-portal-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	text-align: left;
}

/* Cards */
.amp-portal .amp-card {
	background: var(--amp-white);
	border: 1px solid var(--amp-card-border);
	border-radius: var(--amp-radius-card);
	box-shadow: var(--amp-shadow-silk);
	text-align: left;
}

.amp-gate-card {
	padding: 24px 20px;
	border-radius: var(--amp-radius-card-lg);
}

@media (min-width: 480px) {
	.amp-gate-card {
		padding: 32px;
	}
}

/* Gate / anonymous */
.amp-gate-intro {
	text-align: center;
	margin-bottom: 24px;
}

.amp-overline {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--amp-text-muted);
}

.amp-gate-title {
	margin: 0;
	font-family: var(--amp-font-display);
	font-size: clamp(1.5rem, 4.5vw, 1.75rem);
	font-weight: 400;
	line-height: 1.25;
	color: var(--amp-text);
}

.amp-gate-message {
	margin: 10px 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--amp-text-muted);
}

/* Form */
.amp-reservation-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.amp-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.amp-portal .amp-field-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--amp-text);
}

.amp-portal .amp-reservation-input {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--amp-sand-high);
	border-radius: 12px;
	background: var(--amp-sand-low);
	color: var(--amp-text);
	font-family: var(--amp-font-body);
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.amp-portal .amp-reservation-input::placeholder {
	color: var(--amp-text-tertiary);
}

.amp-portal .amp-reservation-input:focus {
	outline: none;
	border-color: var(--amp-terracotta);
	background: var(--amp-white);
	box-shadow: 0 0 0 3px rgba(158, 74, 30, 0.15);
}

/* Buttons */
.amp-portal .amp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	cursor: pointer;
	font-family: var(--amp-font-body);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.amp-portal .amp-btn:focus-visible {
	outline: 2px solid var(--amp-terracotta);
	outline-offset: 2px;
}

.amp-portal .amp-btn-primary {
	width: 100%;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: var(--amp-radius-pill);
	background: var(--amp-terracotta);
	color: var(--amp-white);
	font-size: 1rem;
	box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06);
}

.amp-portal .amp-btn-primary:hover {
	background: var(--amp-terracotta-deep);
	transform: translateY(-1px);
}

.amp-portal .amp-btn-primary:active {
	background: var(--amp-terracotta-active);
	transform: translateY(0);
}

.amp-btn-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.amp-portal .amp-btn-copy {
	flex-shrink: 0;
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid var(--amp-sand-high);
	border-radius: 8px;
	background: var(--amp-white);
	color: var(--amp-terracotta);
	font-size: 11px;
	font-weight: 600;
}

.amp-portal .amp-btn-copy:hover {
	background: var(--amp-terracotta-tint);
	border-color: var(--amp-terracotta);
}

.amp-portal .amp-btn-copy.is-copied {
	background: var(--amp-terracotta-tint);
	border-color: var(--amp-terracotta);
}

/* Stay summary */
.amp-stay-summary {
	padding: 16px 18px;
}

@media (min-width: 480px) {
	.amp-stay-summary {
		padding: 18px 20px;
	}
}

.amp-stay-top {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--amp-card-border);
	text-align: left;
}

.amp-stay-suite {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 0 1 auto;
	min-width: 0;
	text-align: left;
}

/* Status badges — pill, nhẹ, không SaaS */
.amp-status-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	max-width: 48%;
	padding: 4px 10px;
	border-radius: var(--amp-radius-pill);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.3;
	text-align: center;
	overflow-wrap: anywhere;
}

.amp-status-badge--stay.amp-status-badge--active {
	background: var(--amp-terracotta-tint);
	color: var(--amp-terracotta);
	border: 1px solid rgba(158, 74, 30, 0.18);
	box-shadow: none;
}

.amp-status-badge--stay.amp-status-badge--upcoming {
	background: var(--amp-sand-low);
	color: var(--amp-terracotta);
	border: 1px solid var(--amp-sand-high);
}

.amp-status-dot {
	width: 6px;
	height: 6px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--amp-terracotta);
	animation: amp-status-pulse 2s ease-in-out infinite;
}

@keyframes amp-status-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}

.amp-status-badge--access-ready {
	background: var(--amp-terracotta-tint);
	color: var(--amp-terracotta);
	border: none;
	max-width: none;
	padding: 2px 8px;
	font-size: 10px;
}

.amp-status-badge--access-pending {
	background: var(--amp-white);
	color: var(--amp-text-muted);
	border: 1px solid var(--amp-sand-high);
	max-width: none;
	padding: 2px 8px;
	font-size: 10px;
}

.amp-portal .amp-label {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--amp-text-muted);
	text-align: left;
}

.amp-portal .amp-stay-room {
	display: block;
	margin: 2px 0 0;
	font-family: var(--amp-font-display);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--amp-text);
	text-align: left;
	width: auto;
}

.amp-stay-dates {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 16px;
	row-gap: 10px;
	padding-top: 12px;
	text-align: left;
}

.amp-stay-date {
	min-width: 0;
	text-align: left;
}

.amp-portal .amp-stay-date-value {
	display: block;
	margin: 2px 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--amp-text);
	text-align: left;
}

.amp-portal .amp-stay-date-time {
	display: block;
	margin-top: 2px;
	font-size: 0.75rem;
	color: var(--amp-text-muted);
	text-align: left;
}

/* Room access — pending */
.amp-room-access-pending {
	padding: 14px 18px;
	background: var(--amp-sand-low);
	border: 1px solid var(--amp-sand-high);
	border-radius: var(--amp-radius-card);
	box-shadow: none;
}

.amp-room-access-pending-inner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.amp-room-access-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	margin-top: 2px;
	border: 1px solid var(--amp-sand-high);
	border-radius: 50%;
	background: var(--amp-white);
	color: var(--amp-terracotta);
}

.amp-room-access-icon svg {
	width: 16px;
	height: 16px;
}

.amp-portal .amp-section-title {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--amp-text);
}

.amp-room-access-message {
	margin: 6px 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--amp-text-muted);
}

/* Room access — active */
.amp-room-access-active {
	padding: 16px 18px;
	border-width: 2px;
	border-color: rgba(158, 74, 30, 0.25);
}

.amp-room-access-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.amp-room-access-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.amp-room-access-heading {
	display: flex;
	align-items: center;
	gap: 8px;
}

.amp-room-access-icon--active {
	width: 28px;
	height: 28px;
	margin-top: 0;
	background: var(--amp-terracotta-tint);
	border-color: rgba(158, 74, 30, 0.2);
}

.amp-access-grid {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.amp-access-grid--dual {
	grid-template-columns: 1fr 1fr;
}

.amp-access-grid--single {
	grid-template-columns: 1fr;
}

.amp-access-credential {
	padding: 12px 12px 14px;
	border: 1px solid var(--amp-sand-high);
	border-radius: 12px;
	background: var(--amp-sand-low);
	text-align: center;
}

.amp-access-label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--amp-text-muted);
}

.amp-access-code {
	margin: 0;
	padding: 4px 0;
	overflow-wrap: anywhere;
	word-break: break-word;
	font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
	font-size: clamp(1.125rem, 4.8vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	color: var(--amp-text);
	user-select: all;
}

/* Wi-Fi */
.amp-wifi-section {
	padding: 16px 18px;
}

.amp-wifi-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.amp-wifi-secondary-label {
	flex-shrink: 1;
	max-width: 46%;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--amp-text-muted);
	overflow-wrap: anywhere;
	text-align: right;
}

.amp-wifi-heading {
	display: flex;
	align-items: center;
	gap: 8px;
}

.amp-wifi-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--amp-terracotta);
}

.amp-wifi-panel {
	padding: 12px 14px;
	border: 1px solid var(--amp-sand-high);
	border-radius: 12px;
	background: var(--amp-sand-low);
	text-align: left;
}

.amp-wifi-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.875rem;
	text-align: left;
}

.amp-wifi-row + .amp-wifi-row {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--amp-sand-high);
}

.amp-wifi-row--password {
	align-items: center;
}

.amp-wifi-field-label {
	display: block;
	font-size: 11px;
	color: var(--amp-text-muted);
	text-align: left;
}

.amp-wifi-value {
	display: block;
	margin-top: 2px;
	overflow-wrap: anywhere;
	word-break: break-word;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--amp-text);
	text-align: left;
}

.amp-wifi-password-block {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.amp-wifi-password-value {
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Guides accordion */
.amp-guides {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.amp-guide-accordion {
	overflow: hidden;
	padding: 0;
}

.amp-portal .amp-guide-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 14px 18px;
	border: none;
	background: transparent;
	color: var(--amp-text);
	cursor: pointer;
	text-align: left;
	font-family: var(--amp-font-body);
}

.amp-portal .amp-guide-toggle:hover {
	background: rgba(247, 243, 235, 0.5);
}

.amp-portal .amp-guide-toggle:focus-visible {
	outline: 2px solid var(--amp-terracotta);
	outline-offset: -2px;
}

.amp-guide-toggle-label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.amp-guide-dot {
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--amp-text-muted);
}

.amp-guide-dot--primary {
	background: var(--amp-terracotta);
}

.amp-guide-title {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (min-width: 480px) {
	.amp-guide-title {
		font-size: 14px;
	}
}

.amp-guide-chevron {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--amp-text-muted);
	transition: transform 0.2s ease;
}

.amp-guide-accordion.is-expanded .amp-guide-chevron {
	transform: rotate(180deg);
}

.amp-guide-panel {
	border-top: 1px solid rgba(237, 231, 220, 0.6);
}

.amp-portal .amp-guide-content {
	padding: 12px 18px 16px;
	font-size: 0.875rem;
	line-height: 1.75;
	color: var(--amp-text-muted);
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
	text-align: left;
}

.amp-portal .amp-guide-content p {
	margin: 0 0 12px;
	text-align: left;
}

.amp-portal .amp-guide-content p:last-child {
	margin-bottom: 0;
}

.amp-portal .amp-guide-content h1,
.amp-portal .amp-guide-content h2,
.amp-portal .amp-guide-content h3,
.amp-portal .amp-guide-content h4 {
	margin: 0 0 10px;
	font-family: var(--amp-font-body);
	font-weight: 600;
	line-height: 1.35;
	color: var(--amp-text);
	text-align: left;
}

.amp-portal .amp-guide-content h1 { font-size: 1.125rem; }
.amp-portal .amp-guide-content h2 { font-size: 1rem; }
.amp-portal .amp-guide-content h3 { font-size: 0.9375rem; }
.amp-portal .amp-guide-content h4 { font-size: 0.875rem; }

.amp-portal .amp-guide-content ul,
.amp-portal .amp-guide-content ol {
	margin: 0 0 14px;
	padding-left: 1.35rem;
	text-align: left;
	list-style-position: outside;
}

.amp-portal .amp-guide-content li {
	margin-bottom: 6px;
	text-align: left;
}

.amp-portal .amp-guide-content li:last-child {
	margin-bottom: 0;
}

.amp-portal .amp-guide-content a {
	color: var(--amp-aegean);
	text-decoration: underline;
	text-underline-offset: 2px;
	overflow-wrap: anywhere;
	word-break: break-word;
	text-align: left;
}

.amp-portal .amp-guide-content a:hover {
	color: var(--amp-terracotta);
}

.amp-portal .amp-guide-content a:focus-visible {
	outline: 2px solid var(--amp-terracotta);
	outline-offset: 2px;
	border-radius: 2px;
}

.amp-portal .amp-guide-content strong,
.amp-portal .amp-guide-content b {
	font-weight: 600;
	color: var(--amp-text);
}

.amp-portal .amp-guide-content img {
	max-width: 100%;
	height: auto;
}

/* Guest Registration */
.amp-guest-registration {
	padding: 16px 18px;
}

.amp-guest-reg-header {
	margin-bottom: 8px;
}

.amp-guest-reg-privacy {
	margin: 0 0 14px;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--amp-text-muted);
}

.amp-guest-reg-notice {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--amp-sand-high);
	border-radius: 12px;
	background: var(--amp-sand-low);
	font-size: 0.875rem;
	color: var(--amp-text-muted);
}

.amp-guest-reg-slots {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.amp-guest-slot {
	padding: 14px;
	border: 1px solid var(--amp-sand-high);
	border-radius: 12px;
	background: var(--amp-sand-low);
}

.amp-guest-slot-title {
	margin: 0 0 12px;
	font-family: var(--amp-font-display);
	font-size: 1rem;
	font-weight: 400;
	color: var(--amp-text);
}

.amp-guest-slot-subtitle {
	display: block;
	margin-top: 4px;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--amp-text-muted, var(--amp-text));
	opacity: 0.85;
}

.amp-guest-legal-section {
	margin-bottom: 16px;
}

.amp-guest-legal-heading {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--amp-text-muted);
}

.amp-guest-legal-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.amp-guest-legal-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.amp-guest-legal-field[hidden] {
	display: none !important;
}

.amp-b4-hint {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--amp-text-muted);
}

.amp-b4-hint[hidden] {
	display: none;
}

.amp-portal .amp-guest-legal-input,
.amp-portal .amp-guest-legal-select,
.amp-portal .amp-guest-legal-textarea {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--amp-sand-high);
	border-radius: 10px;
	background: var(--amp-white);
	color: var(--amp-text);
	font-family: var(--amp-font-body);
	font-size: 0.875rem;
	line-height: 1.4;
}

.amp-portal .amp-guest-legal-textarea {
	min-height: 80px;
	resize: vertical;
}

.amp-portal .amp-guest-legal-input:focus,
.amp-portal .amp-guest-legal-select:focus,
.amp-portal .amp-guest-legal-textarea:focus {
	outline: none;
	border-color: var(--amp-terracotta);
	box-shadow: 0 0 0 3px rgba(158, 74, 30, 0.12);
}

.amp-guest-legal-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}

.amp-guest-legal-saved,
.amp-guest-reg-complete {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--amp-aegean);
}

.amp-guest-legal-error {
	margin: 0;
	font-size: 0.75rem;
	color: var(--amp-terracotta-deep);
}

.amp-doc-block {
	padding: 12px;
	border: 1px solid var(--amp-card-border);
	border-radius: 10px;
	background: var(--amp-white);
}

.amp-doc-block + .amp-doc-block {
	margin-top: 10px;
}

.amp-doc-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.amp-doc-block-title {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--amp-text);
}

.amp-doc-received {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--amp-aegean);
}

.amp-doc-block-hint {
	margin: 0 0 10px;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--amp-text-muted);
}

.amp-doc-upload-label {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.amp-doc-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.amp-portal .amp-btn-secondary {
	min-height: 36px;
	padding: 8px 16px;
	border: 1px solid var(--amp-sand-high);
	border-radius: 8px;
	background: var(--amp-white);
	color: var(--amp-terracotta);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.amp-portal .amp-btn-secondary:hover {
	background: var(--amp-terracotta-tint);
	border-color: var(--amp-terracotta);
}

.amp-doc-replace-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.amp-doc-replace-text {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--amp-aegean);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.amp-doc-loading {
	margin: 8px 0 0;
	font-size: 0.75rem;
	color: var(--amp-text-muted);
}

.amp-passport-processing {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	background: rgba(248, 246, 242, 0.78);
	touch-action: none;
	overscroll-behavior: none;
	cursor: wait;
}

.amp-passport-processing[hidden] {
	display: none;
}

/* Reusable Astro orbit loader — motion via amp-astro-loader.js */
.astro-loader {
	display: flex;
	align-items: center;
	justify-content: center;
}

.astro-loader-stage {
	position: relative;
	width: 150px;
	height: 150px;
	isolation: isolate;
}

.astro-loader-dot {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 24px;
	height: 24px;
	margin: -12px 0 0 -12px;
	border-radius: 50%;
	opacity: 0.88;
	transform-origin: center center;
}

.astro-loader-dot--1 {
	background-color: #c86928;
}

.astro-loader-dot--2 {
	background-color: #d58a5f;
}

.astro-loader-dot--3 {
	background-color: #e1aa96;
}


.amp-doc-error {
	margin: 8px 0 0;
	font-size: 0.75rem;
	color: var(--amp-terracotta-deep);
}

.amp-doc-identity-actions,
.amp-doc-identity-received {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.amp-portal .amp-doc-scan-btn {
	min-height: 40px;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
}

.amp-portal .amp-doc-identity-actions .amp-btn-primary.amp-doc-scan-btn {
	width: 100%;
	border-radius: var(--amp-radius-pill);
}

.amp-doc-upload-note {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--amp-text-muted);
}

.amp-doc-identity-received {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}

/* Passport capture modal (B3A) */
body.amp-passport-capture-open {
	overflow: hidden;
}

.amp-passport-capture {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.amp-passport-capture[hidden] {
	display: none !important;
}

/* UA [hidden] loses to .amp-portal .amp-btn { display:inline-flex } and panel display rules. */
.amp-passport-capture [hidden] {
	display: none !important;
}

.amp-passport-capture-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 25, 23, 0.72);
}

.amp-passport-capture-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	background: #111;
	color: #fff;
}

.amp-passport-capture-header {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	background: #111;
}

.amp-passport-capture-title {
	margin: 0;
	font-family: var(--amp-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}

.amp-passport-capture-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.amp-passport-capture-close:focus-visible {
	outline: 2px solid var(--amp-terracotta);
	outline-offset: 2px;
}

.amp-passport-capture-orient {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 2;
	box-sizing: border-box;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 72px 24px calc(24px + env(safe-area-inset-bottom, 0px));
	background: #111;
	text-align: center;
	pointer-events: auto;
}

.amp-passport-capture--portrait-guard .amp-passport-capture-orient {
	display: flex;
}

.amp-passport-capture--portrait-guard .amp-passport-capture-body,
.amp-passport-capture--portrait-guard .amp-passport-capture-footer {
	pointer-events: none;
}

.amp-passport-capture-orient-svg {
	display: block;
	width: min(28vw, 112px);
	height: auto;
	overflow: visible;
}

.amp-passport-capture-orient-phone {
	transform-box: fill-box;
	transform-origin: center;
	animation: ampOrientPhoneRotate 2400ms cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.amp-passport-capture-orient-arrow {
	opacity: 0.55;
	animation: ampOrientArrowPulse 2400ms ease-in-out infinite;
}

@keyframes ampOrientPhoneRotate {
	0%,
	15% {
		transform: rotate(-90deg);
	}

	55%,
	100% {
		transform: rotate(0deg);
	}
}

@keyframes ampOrientArrowPulse {
	0%,
	20% {
		opacity: 0.25;
	}

	45% {
		opacity: 0.9;
	}

	100% {
		opacity: 0.35;
	}
}

.amp-passport-capture-orient-copy {
	margin: 0;
	max-width: min(100%, 22rem);
	font-family: var(--amp-font-body);
	font-size: clamp(1.125rem, 4.6vw, 1.25rem);
	font-weight: 600;
	line-height: 1.4;
	color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
	.amp-passport-capture-orient-phone,
	.amp-passport-capture-orient-arrow {
		animation: none !important;
	}

	.amp-passport-capture-orient-phone {
		transform: none !important;
	}

	.amp-passport-capture-orient-arrow {
		opacity: 0.7 !important;
	}
}

.amp-passport-capture-body {
	position: relative;
	z-index: 1;
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #000;
}

.amp-passport-capture-opening,
.amp-passport-capture-error {
	padding: 24px;
	text-align: center;
}

.amp-passport-capture-status,
.amp-passport-capture-error-msg {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}

.amp-passport-capture-camera {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	isolation: isolate;
}

.amp-passport-capture-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}

.amp-passport-capture-guide {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	pointer-events: none;
}

.amp-passport-capture-frame {
	position: relative;
	width: min(88vw, 360px);
	aspect-ratio: 1.42 / 1;
	border: 2px solid rgba(255, 255, 255, 0.92);
	border-radius: 8px;
	box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.48);
}

.amp-passport-capture-corner {
	position: absolute;
	width: 18px;
	height: 18px;
	border-color: #fff;
	border-style: solid;
}

.amp-passport-capture-corner--tl {
	top: -2px;
	left: -2px;
	border-width: 3px 0 0 3px;
	border-radius: 4px 0 0 0;
}

.amp-passport-capture-corner--tr {
	top: -2px;
	right: -2px;
	border-width: 3px 3px 0 0;
	border-radius: 0 4px 0 0;
}

.amp-passport-capture-corner--bl {
	bottom: -2px;
	left: -2px;
	border-width: 0 0 3px 3px;
	border-radius: 0 0 0 4px;
}

.amp-passport-capture-corner--br {
	bottom: -2px;
	right: -2px;
	border-width: 0 3px 3px 0;
	border-radius: 0 0 4px 0;
}

.amp-passport-capture-instruction {
	margin: 0;
	padding: 0 20px;
	max-width: 320px;
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: center;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.amp-passport-capture-intro {
	position: absolute;
	inset: 0;
	z-index: 2;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 8px 20px;
	text-align: center;
	color: #fff;
	background:
		radial-gradient(
			ellipse at 50% 58%,
			rgba(118, 64, 35, 0.18) 0%,
			rgba(65, 39, 25, 0.10) 30%,
			rgba(11, 11, 11, 0) 64%
		),
		#0b0b0b;
	-webkit-overflow-scrolling: touch;
}

.amp-passport-capture-intro::before,
.amp-passport-capture-intro::after {
	content: '';
	flex: 1 1 0;
	width: 100%;
	min-height: 8px;
	pointer-events: none;
}

.amp-passport-capture-intro-lead {
	margin: 0 0 6px;
	max-width: min(100%, 22rem);
	font-size: clamp(1.125rem, 4.6vw, 1.25rem);
	font-weight: 600;
	line-height: 1.4;
	color: #ffffff;
}

.amp-passport-capture-intro-tip {
	margin: 0 0 12px;
	max-width: min(100%, 22rem);
	font-size: clamp(1.125rem, 4.6vw, 1.25rem);
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.86);
}

.amp-passport-guide-art-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 0 auto;
	flex: 0 0 auto;
	min-height: 0;
}

.amp-passport-guide-art {
	--amp-passport-guide-rotate-ms: 2600ms;
	--amp-passport-frame-reveal-delay: calc(var(--amp-passport-guide-rotate-ms) * 0.62);
	--amp-passport-frame-reveal-duration: 225ms;
	--amp-passport-frame-wave-cycle: 2200ms;
	position: relative;
	width: min(72vw, 430px);
	max-width: 430px;
	max-height: 48vh;
	aspect-ratio: 1243 / 1265;
	margin: 0 auto;
	overflow: visible;
}

.amp-passport-guide-artwork,
.amp-passport-guide-frame {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.amp-passport-guide-artwork {
	object-fit: contain;
	pointer-events: none;
}

.amp-passport-guide-frame {
	overflow: visible;
	filter: none;
}

@media (max-height: 720px) {
	.amp-passport-guide-art {
		width: min(64vw, 340px);
		max-height: 42vh;
	}
}

.amp-passport-guide-book {
	transform-box: fill-box;
	transform-origin: center center;
}

.amp-passport-capture-corners {
	transform-box: view-box;
	transform-origin: center;
}

.amp-passport-capture-glow-wave {
	fill: none;
	stroke: rgba(232, 137, 77, 0.8);
	stroke-width: 18;
	stroke-linecap: round;
	stroke-linejoin: round;
	transform-box: view-box;
	transform-origin: center;
	pointer-events: none;
	filter:
		drop-shadow(0 0 3px rgba(232, 137, 77, 0.8))
		drop-shadow(0 0 7px rgba(232, 137, 77, 0.5));
}

.amp-passport-capture-frame-reveal {
	opacity: 0;
}

.amp-passport-capture-intro:not([hidden]) .amp-passport-guide-book {
	animation: ampPassportGuideRotate var(--amp-passport-guide-rotate-ms) cubic-bezier(0.22, 1, 0.36, 1)
		both;
}

@keyframes ampPassportGuideRotate {
	0% {
		transform: rotate(-90deg) scale(0.9);
		opacity: 0.78;
	}

	18% {
		transform: rotate(-90deg) scale(0.9);
		opacity: 0.9;
	}

	78% {
		transform: rotate(3deg) scale(1.01);
		opacity: 1;
	}

	100% {
		transform: rotate(0deg) scale(1);
		opacity: 1;
	}
}

.amp-passport-capture-intro:not([hidden]) .amp-passport-capture-frame-reveal {
	animation: ampPassportGuideFrameReveal var(--amp-passport-frame-reveal-duration) ease-out
		var(--amp-passport-frame-reveal-delay) both;
}

@keyframes ampPassportGuideFrameReveal {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.amp-passport-capture-intro:not([hidden]) .amp-passport-capture-glow-wave-1 {
	animation: ampPassportCornerWaveRadiate var(--amp-passport-frame-wave-cycle) ease-out
		var(--amp-passport-frame-reveal-delay) infinite;
}

.amp-passport-capture-intro:not([hidden]) .amp-passport-capture-glow-wave-2 {
	animation: ampPassportCornerWaveRadiateOffset var(--amp-passport-frame-wave-cycle) ease-out
		var(--amp-passport-frame-reveal-delay) infinite;
}

@keyframes ampPassportCornerWaveRadiate {
	0% {
		transform: scale(1);
		opacity: 0.7;
	}

	100% {
		transform: scale(1.1);
		opacity: 0;
	}
}

@keyframes ampPassportCornerWaveRadiateOffset {
	0%,
	44% {
		transform: scale(1);
		opacity: 0;
	}

	45% {
		transform: scale(1);
		opacity: 0.7;
	}

	100% {
		transform: scale(1.1);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.amp-passport-guide-book {
		animation: none !important;
		transform: none !important;
		opacity: 1 !important;
	}

	.amp-passport-capture-frame-reveal {
		animation: ampPassportGuideFrameReveal 180ms ease-out both !important;
		opacity: 1 !important;
	}

	.amp-passport-capture-glow-wave {
		animation: none !important;
		opacity: 0 !important;
		visibility: hidden;
	}
}

.amp-passport-capture-footer .amp-passport-capture-intro-continue:not([hidden]) {
	flex: 1 1 100%;
	width: 100%;
	min-height: 54px;
	padding: 15px 24px;
	font-size: 1.0625rem;
	font-weight: 700;
	color: #ffffff;
	background: #a6542d;
	border: none;
	border-radius: var(--amp-radius-pill);
	box-shadow: 0 8px 28px rgba(166, 84, 45, 0.55);
}

.amp-passport-capture-footer .amp-passport-capture-intro-continue:not([hidden]):hover {
	background: #923f1f;
}

.amp-passport-capture-quality-live {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 6px 14px;
	min-height: 2rem;
	max-width: min(300px, 92vw);
	box-sizing: border-box;
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: center;
	color: rgba(255, 255, 255, 0.95);
	background: rgba(0, 0, 0, 0.45);
	border-radius: var(--amp-radius-pill);
	text-shadow: none;
}

.amp-passport-capture-quality-live[hidden] {
	display: none;
}

.amp-passport-capture-quality-live-symbol {
	flex: 0 0 auto;
	font-size: 1rem;
	line-height: 1;
	font-weight: 700;
}

.amp-passport-capture-quality-live-text {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

.amp-passport-capture-quality-result {
	flex: 1 1 100%;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	margin: 0 0 4px;
	padding: 8px 12px;
	font-size: 0.8125rem;
	line-height: 1.45;
	text-align: left;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.08);
	border-radius: 8px;
}

.amp-passport-capture-quality-symbol {
	flex: 0 0 auto;
	font-size: 1rem;
	line-height: 1.45;
	font-weight: 700;
}

.amp-passport-capture-quality-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.amp-passport-capture-quality-headline {
	display: block;
	font-weight: 600;
}

.amp-passport-capture-quality-detail {
	display: block;
	font-size: 0.75rem;
	line-height: 1.4;
	opacity: 0.92;
}

.amp-passport-capture-quality-detail[hidden] {
	display: none;
}

.amp-passport-capture-quality-result[data-level="pass"] {
	color: #b8e6c8;
	background: rgba(72, 160, 104, 0.18);
}

.amp-passport-capture-quality-result[data-level="warn"] {
	color: #f5e0b8;
	background: rgba(200, 150, 60, 0.2);
}

.amp-passport-capture-quality-result[data-level="processing"] {
	border-color: rgba(255, 255, 255, 0.35);
	color: rgba(255, 255, 255, 0.92);
}

.amp-passport-capture-quality-result[data-level="fail"] {
	color: #f0c4b8;
	background: rgba(180, 80, 60, 0.2);
}

.amp-passport-capture-quality-debug {
	position: absolute;
	z-index: 2;
	left: 8px;
	right: 8px;
	bottom: 8px;
	max-height: 42%;
	margin: 0;
	padding: 8px 10px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
	font-size: 10px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
	color: #e8f4ec;
	background: rgba(0, 0, 0, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	pointer-events: auto;
}

.amp-passport-capture-preview {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: #000;
}

.amp-passport-capture-preview-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
}

.amp-passport-capture-footer {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: #111;
}

.amp-passport-capture-footer .amp-btn {
	min-width: 120px;
	min-height: 44px;
}

.amp-passport-capture-footer .amp-btn-primary {
	background: var(--amp-terracotta);
	color: var(--amp-white);
	border: none;
	border-radius: var(--amp-radius-pill);
}

.amp-passport-capture-footer .amp-btn-primary:hover {
	background: var(--amp-terracotta-deep);
}

.amp-passport-capture-footer .amp-btn-secondary {
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--amp-radius-pill);
	background: transparent;
	color: #fff;
}

.amp-passport-capture-footer .amp-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
	.amp-passport-capture {
		padding: 24px;
	}

	.amp-passport-capture-dialog {
		max-width: 520px;
		max-height: min(92vh, 760px);
		border-radius: 16px;
		overflow: hidden;
		box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	}
}

/* Logout — action phụ cuối Portal, KHÔNG phải primary CTA, KHÔNG đặt cạnh Main door/Lockbox */
.amp-logout-row {
	margin-top: 4px;
	padding-top: 4px;
	text-align: center;
}

.amp-portal .amp-logout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 18px;
	border: none;
	background: transparent;
	color: var(--amp-text-muted);
	font-family: var(--amp-font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--amp-sand-border);
	cursor: pointer;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.amp-portal .amp-logout-btn:hover {
	color: var(--amp-terracotta);
	text-decoration-color: var(--amp-terracotta);
}

.amp-portal .amp-logout-btn:focus-visible {
	outline: 2px solid var(--amp-terracotta);
	outline-offset: 2px;
	border-radius: 4px;
}

.amp-portal .amp-logout-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.amp-portal .amp-logout-error {
	margin: 8px 0 0;
	font-size: 0.75rem;
	color: var(--amp-terracotta-deep);
	text-align: center;
}

/* Responsive tweaks */
@media (max-width: 374px) {
	.amp-stay-top {
		align-items: flex-start;
	}

	.amp-status-badge {
		max-width: 46%;
	}

	.amp-room-access-header {
		flex-wrap: wrap;
	}

	.amp-wifi-header {
		flex-wrap: wrap;
	}
}

@media (max-width: 359px) {
	.amp-stay-dates {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.amp-access-grid--dual {
		grid-template-columns: 1fr;
	}

	.amp-wifi-row--password {
		flex-direction: column;
		align-items: stretch;
	}

	.amp-portal .amp-btn-copy {
		align-self: flex-start;
	}
}

@media (min-width: 640px) {
	.amp-portal {
		padding: 16px 24px 40px;
	}

	.amp-portal.amp-state-authenticated {
		max-width: 560px;
	}
}

/* B5.0D0 — query-param developer debug (not shown without amp_*_debug=1) */
.amp-dev-debug-dock {
	margin: 16px 0 0;
	padding: 12px;
	border: 1px dashed rgba(0, 0, 0, 0.2);
	border-radius: var(--amp-radius-md, 8px);
	background: rgba(0, 0, 0, 0.03);
}

.amp-dev-debug-dock[hidden] {
	display: none;
}

.amp-dev-debug-ocr {
	margin: 0 0 10px;
	padding: 8px 10px;
	max-height: 40vh;
	overflow: auto;
	font-size: 0.6875rem;
	line-height: 1.35;
	white-space: pre-wrap;
	word-break: break-word;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 6px;
}

.amp-dev-debug-ocr[hidden] {
	display: none;
}

.amp-dev-debug-copy {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
}

.amp-dev-debug-copy[hidden] {
	display: none;
}

/* B5.4 — pre-save legal review modal */
body.amp-legal-review-open {
	overflow: hidden;
}

.amp-legal-review {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}

.amp-legal-review[hidden] {
	display: none !important;
}

.amp-legal-review [hidden] {
	display: none !important;
}

.amp-legal-review-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 25, 23, 0.55);
}

.amp-legal-review-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 480px;
	max-height: min(90vh, 720px);
	padding: 20px 18px 16px;
	background: var(--amp-white);
	color: var(--amp-text);
	border: 1px solid var(--amp-card-border);
	border-radius: var(--amp-radius-card);
	box-shadow: var(--amp-shadow-silk);
	outline: none;
}

.amp-legal-review-title {
	margin: 0 0 8px;
	font-family: var(--amp-font-display);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--amp-text);
}

.amp-legal-review-lead {
	margin: 0 0 14px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--amp-text-muted);
}

.amp-legal-review-body {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
	min-height: 0;
	margin: 0 0 14px;
	padding-right: 4px;
}

.amp-legal-review-list {
	margin: 0;
	display: grid;
	grid-template-columns: minmax(7.5rem, 38%) 1fr;
	gap: 8px 12px;
}

.amp-legal-review-list dt {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--amp-text-muted);
}

.amp-legal-review-list dd {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--amp-text);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.amp-legal-review-actions {
	display: flex;
	flex-shrink: 0;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--amp-card-border);
}

.amp-legal-review-actions .amp-btn {
	flex: 1 1 0;
	width: auto;
	min-height: 44px;
}

.amp-legal-review-actions .amp-btn-primary {
	width: auto;
	min-height: 44px;
	padding: 10px 16px;
	font-size: 0.9375rem;
}

.amp-legal-review-actions .amp-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.amp-guest-legal-field[hidden] {
	display: none !important;
}

@media (max-width: 479px) {
	.amp-legal-review {
		padding: 8px;
		align-items: flex-end;
	}

	.amp-legal-review-dialog {
		max-width: 100%;
		max-height: 92vh;
		border-bottom-left-radius: 12px;
		border-bottom-right-radius: 12px;
	}
}

/* G4C — optional passport AI assistance */
.amp-doc-identity-received {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.amp-passport-ai-status {
	margin: 8px 0 0;
	font-size: 0.875rem;
	color: var(--amp-text-muted);
}

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

.amp-identity-doc-card {
	padding: 14px 16px;
	border: 1px solid var(--amp-card-border, #e2e8f0);
	border-radius: 12px;
	background: var(--amp-card-bg, #fff);
	margin-bottom: 10px;
}

.amp-identity-doc-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.amp-identity-doc-card-title {
	font-weight: 600;
	font-size: 1rem;
}

.amp-identity-doc-card-badge {
	font-size: 0.875rem;
	color: var(--amp-success, #15803d);
	font-weight: 600;
}

.amp-identity-doc-card-status {
	margin: 8px 0 0;
	font-size: 0.875rem;
	color: var(--amp-text-muted);
	min-height: 1.25em;
}

.amp-identity-doc-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.amp-identity-doc-card-actions .amp-btn {
	min-height: 44px;
}

.amp-guest-legal-section--canonical-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.amp-guest-reg-save-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
}

.amp-guest-reg-save-bar .amp-btn {
	min-height: 44px;
}

body.amp-doc-review-open {
	overflow: hidden;
}

.amp-doc-review {
	position: fixed;
	inset: 0;
	z-index: 100015;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
}

.amp-doc-review[hidden] {
	display: none !important;
}

.amp-doc-review-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
}

.amp-doc-review-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	max-height: min(92vh, 720px);
	overflow: auto;
	background: var(--amp-card-bg, #fff);
	border-radius: 16px 16px 0 0;
	padding: 20px 18px 24px;
	box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18);
}

.amp-doc-review-title {
	margin: 0 0 8px;
	font-size: 1.125rem;
	line-height: 1.35;
}

.amp-doc-review-lead {
	margin: 0 0 12px;
	font-size: 0.9375rem;
	color: var(--amp-text-muted);
	line-height: 1.45;
}

.amp-doc-review-notice {
	margin: 0 0 12px;
	font-size: 0.875rem;
	color: var(--amp-text-muted);
	line-height: 1.4;
}

.amp-doc-review-field {
	margin-bottom: 14px;
}

.amp-doc-review-field .amp-field-label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
}

.amp-doc-review-field .amp-guest-legal-input,
.amp-doc-review-field .amp-guest-legal-select,
.amp-doc-review-field .amp-guest-legal-textarea {
	width: 100%;
	min-height: 44px;
}

.amp-doc-review-actions {
	display: flex;
	flex-direction: column-reverse;
	gap: 10px;
	margin-top: 16px;
}

.amp-doc-review-actions .amp-btn {
	min-height: 44px;
	width: 100%;
}

@media (min-width: 480px) {
	.amp-doc-review {
		align-items: center;
		padding: 16px;
	}

	.amp-doc-review-dialog {
		border-radius: 12px;
		max-height: 90vh;
	}

	.amp-doc-review-actions {
		flex-direction: row;
		justify-content: flex-end;
	}

	.amp-doc-review-actions .amp-btn {
		width: auto;
		min-width: 120px;
	}
}
