/* Reservation popup + cancellation page. Inherits --rv-* variables from the theme when present. */
:root {
	--rv-red: #880f0f;
	--rv-paper: #f6f1e5;
	--rv-ink: #3b2a1e;
	--rv-font-title: 'Grenze Gotisch', Georgia, serif;
	--rv-font-body: 'Figtree', 'Segoe UI', Helvetica, Arial, sans-serif;
}

.rv-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rv-modal[hidden] { display: none; }
.rv-modal__backdrop { position: absolute; inset: 0; background: rgba(40, 60, 35, .55); backdrop-filter: blur(2px); animation: rv-fade .25s ease; }
.rv-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	background:
		radial-gradient(120% 80% at 30% 10%, rgba(255, 255, 255, .55), transparent 60%),
		var(--rv-paper);
	color: var(--rv-ink);
	font-family: var(--rv-font-body);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(60, 50, 20, .12), 0 24px 60px rgba(10, 30, 15, .4);
	padding: 30px 32px 28px;
	animation: rv-pop .3s cubic-bezier(.22, .61, .36, 1);
}
.rv-modal__dialog:focus { outline: none; }
.rv-modal__close {
	position: absolute; top: 10px; right: 12px;
	width: 38px; height: 38px; border: 0; border-radius: 50%;
	background: transparent; color: var(--rv-red); font-size: 30px; line-height: 1; cursor: pointer;
}
.rv-modal__close:hover, .rv-modal__close:focus-visible { background: rgba(136, 15, 15, .08); outline: none; }
.rv-modal__head { text-align: center; margin-bottom: 18px; }
.rv-modal__title { font-family: var(--rv-font-title); font-weight: 500; font-size: 38px; line-height: 1.1; color: var(--rv-red); margin: 0; letter-spacing: .04em; }
.rv-modal__sub { margin: 4px 0 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--rv-red); }
.rv-modal__head::after { content: ''; display: block; width: 100%; height: 3px; margin-top: 16px; background: #a8191d; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }

.rv-state[hidden] { display: none; }
.rv-state--loading, .rv-state--empty { text-align: center; padding: 20px 0; color: var(--rv-red); }
.rv-state--empty a { color: var(--rv-red); }

.rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.rv-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rv-field--full { grid-column: 1 / -1; }
.rv-field__label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--rv-red); }
.rv-field__label em { font-style: normal; letter-spacing: .05em; text-transform: none; opacity: .7; }
.rv-field input, .rv-field select, .rv-field textarea {
	width: 100%;
	font: inherit;
	color: var(--rv-ink);
	background: #fffdf8;
	border: 1px solid #cdbfa5;
	border-radius: 3px;
	padding: 10px 12px;
	min-height: 44px;
	box-shadow: inset 0 1px 2px rgba(60, 50, 20, .08);
}
.rv-field textarea { min-height: 80px; resize: vertical; }
.rv-field__static { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; font-size: 16px; font-weight: 600; color: var(--rv-red); background: rgba(136, 15, 15, .06); border: 1px dashed #cdbfa5; border-radius: 3px; }
.rv-field input:focus, .rv-field select:focus, .rv-field textarea:focus { outline: 2px solid var(--rv-red); outline-offset: 1px; border-color: var(--rv-red); }
.rv-field.is-invalid input, .rv-field.is-invalid select, .rv-field.is-invalid textarea { border-color: #b32d2e; background: #fff6f5; }
.rv-field__msg { font-size: 12px; color: #b32d2e; min-height: 0; }
.rv-field__msg:empty { display: none; }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rv-form__error { margin: 0 0 14px; padding: 10px 14px; background: #fff0ef; border: 1px solid #e3a5a5; color: #8c1c1c; border-radius: 3px; font-size: 14px; }
.rv-form__error[hidden] { display: none; }
.rv-form__note { font-size: 13px; color: #6b5a4a; margin: 16px 0 0; }
.rv-form__actions { margin-top: 18px; text-align: center; }

.rv-btn {
	display: inline-block;
	font: inherit;
	font-size: 13px;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: #fff;
	background: var(--rv-red);
	border: 0;
	border-radius: 3px;
	padding: 14px 26px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(60, 40, 20, .25), 0 8px 18px rgba(30, 50, 25, .18);
	transition: transform .2s, box-shadow .2s, background .2s;
}
.rv-btn:hover, .rv-btn:focus-visible { background: #a11414; transform: translateY(-1px); outline: none; }
.rv-btn:focus-visible { outline: 2px solid var(--rv-red); outline-offset: 3px; }
.rv-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.rv-btn--danger { background: #6b5a4a; }
.rv-btn--danger:hover { background: #5a4a3b; }

.rv-success__mark { width: 56px; height: 56px; margin: 6px auto 12px; border-radius: 50%; background: var(--rv-red); color: #fff; font-size: 30px; line-height: 56px; text-align: center; }
.rv-success__title { font-family: var(--rv-font-title); font-weight: 500; font-size: 30px; color: var(--rv-red); text-align: center; margin: 0 0 10px; }
.rv-success__text { text-align: center; font-size: 16px; margin: 0 0 8px; }
.rv-success__small { text-align: center; font-size: 13px; color: #6b5a4a; margin: 0; }

body.rv-modal-open { overflow: hidden; }

@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rv-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv-modal__backdrop, .rv-modal__dialog { animation: none; } }

@media (max-width: 520px) {
	.rv-modal { padding: 0; align-items: flex-end; }
	.rv-modal__dialog { max-height: 100vh; max-height: 100dvh; border-radius: 12px 12px 0 0; padding: 24px 20px 28px; }
	.rv-grid { grid-template-columns: 1fr; }
	.rv-modal__title { font-size: 32px; }
}
