/* Restart Cookies: message (bottom left), settings window, buttons. */
.rtcn, .rtcn-modal, .rtcn-reopen, .rtcn-inline, .rtcn-list {
	--rtcn-navy: #0b1f3a;
	--rtcn-navy-2: #12295a;
	--rtcn-blue: #1450e6;
	--rtcn-gold: #c9a24a;
	--rtcn-yellow: #ffd23f;
	--rtcn-text: #0f172a;
	--rtcn-muted: #5b6b82;
	--rtcn-line: #e5eaf2;
	font-family: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.rtcn .rt-icon, .rtcn-modal .rt-icon, .rtcn-inline .rt-icon, .rtcn-reopen .rt-icon { display: inline-block; flex: none; vertical-align: middle; }

/* Buttons: the theme styles every <button>, so these reset first. */
.rtcn button.rtcn-btn, .rtcn-modal button.rtcn-btn, .rtcn-inline button.rtcn-btn {
	all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--rtcn-navy); border-radius: 12px;
	font: 700 14px/1.2 "Geologica", system-ui, sans-serif; text-align: center; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.rtcn button.rtcn-btn--solid, .rtcn-modal button.rtcn-btn--solid, .rtcn-inline button.rtcn-btn--solid { background: var(--rtcn-navy); color: #fff; }
.rtcn button.rtcn-btn--solid:hover, .rtcn-modal button.rtcn-btn--solid:hover, .rtcn-inline button.rtcn-btn--solid:hover { background: var(--rtcn-blue); border-color: var(--rtcn-blue); color: #fff; }
.rtcn button.rtcn-btn--line, .rtcn-modal button.rtcn-btn--line { background: #fff; color: var(--rtcn-navy); }
.rtcn button.rtcn-btn--line:hover, .rtcn-modal button.rtcn-btn--line:hover { background: #f1f5fb; color: var(--rtcn-navy); }
.rtcn button.rtcn-btn:focus-visible, .rtcn-modal button.rtcn-btn:focus-visible, .rtcn-inline button.rtcn-btn:focus-visible, .rtcn-modal .rtcn-x:focus-visible, .rtcn-reopen:focus-visible { outline: 3px solid var(--rtcn-yellow); outline-offset: 2px; }

/* Message */
dialog.rtcn {
	position: fixed; inset: auto auto 20px 20px; z-index: 99990; box-sizing: border-box;
	width: 400px; max-width: calc(100vw - 32px); margin: 0; padding: 20px 20px 18px;
	border: 0; border-radius: 20px; background: #fff; color: var(--rtcn-text);
	box-shadow: 0 24px 60px rgba(8, 18, 40, .28), 0 0 0 1px rgba(11, 31, 58, .06);
	opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
dialog.rtcn::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 4px; border-radius: 0 0 4px 4px; background: var(--rtcn-yellow); }
dialog.rtcn.is-in { opacity: 1; transform: none; }
.rtcn__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rtcn__ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #fff7d6; color: #a07800; flex: none; }
.rtcn p.rtcn__title { margin: 0; color: var(--rtcn-navy); font-size: 17px; font-weight: 800; line-height: 1.25; }
.rtcn p.rtcn__text { margin: 0 0 16px; color: var(--rtcn-muted); font-size: 13.5px; line-height: 1.55; }
.rtcn__text a, .rtcn-modal__text a { color: var(--rtcn-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.rtcn__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
dialog.rtcn .rtcn__btns button.rtcn-btn--wide { grid-column: 1 / -1; }

/* Settings window */
html.rtcn-lock { overflow: hidden; }
dialog.rtcn-modal {
	box-sizing: border-box; display: none; flex-direction: column;
	width: 620px; max-width: calc(100vw - 32px); max-height: min(760px, calc(100vh - 40px)); margin: auto; padding: 0;
	border: 0; border-radius: 22px; background: #fff; color: var(--rtcn-text); overflow: hidden;
	box-shadow: 0 30px 80px rgba(8, 18, 40, .35);
}
dialog.rtcn-modal[open] { display: flex; animation: rtcn-in .25s cubic-bezier(.2, .8, .2, 1); }
dialog.rtcn-modal::backdrop { background: rgba(7, 21, 48, .55); backdrop-filter: blur(2px); }
@keyframes rtcn-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.rtcn-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 14px 24px; border-bottom: 1px solid var(--rtcn-line); }
.rtcn-modal p.rtcn-modal__title { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--rtcn-navy); font-size: 19px; font-weight: 800; }
.rtcn-modal p.rtcn-modal__title .rt-icon { color: #a07800; }
.rtcn-modal button.rtcn-x { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #64748b; cursor: pointer; transition: background .15s, color .15s; }
.rtcn-modal button.rtcn-x:hover { background: #f1f5f9; color: var(--rtcn-navy); }
.rtcn-modal__body { flex: 1 1 auto; overflow-y: auto; padding: 16px 24px 8px; overscroll-behavior: contain; }
.rtcn-modal p.rtcn-modal__text { margin: 0 0 14px; color: var(--rtcn-muted); font-size: 14px; line-height: 1.55; }
.rtcn-cat { margin: 0 0 10px; padding: 14px 16px; border: 1px solid var(--rtcn-line); border-radius: 16px; background: #fbfcfe; }
.rtcn-cat__head { display: flex; align-items: center; gap: 10px; }
.rtcn-cat__ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: #eaf0fe; color: var(--rtcn-blue); flex: none; }
.rtcn-modal .rtcn-cat__title { flex: 1; margin: 0; color: var(--rtcn-navy); font-size: 15px; font-weight: 800; cursor: pointer; }
.rtcn-cat p.rtcn-cat__text { margin: 8px 0 0 42px; color: var(--rtcn-muted); font-size: 13.5px; line-height: 1.5; }
.rtcn-pill { padding: 5px 10px; border-radius: 999px; background: #e7f6ec; color: #13703a; font-size: 12px; font-weight: 800; }

/* Switch */
.rtcn-switch { position: relative; display: inline-flex; flex: none; width: 48px; height: 28px; }
.rtcn-modal .rtcn-switch input { all: unset; position: absolute; inset: 0; z-index: 1; margin: 0; cursor: pointer; border-radius: 999px; }
.rtcn-switch span { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background .2s; pointer-events: none; }
.rtcn-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .25); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.rtcn-switch input:checked + span { background: var(--rtcn-blue); }
.rtcn-switch input:checked + span::after { transform: translateX(20px); }
.rtcn-switch input:focus-visible + span { outline: 3px solid var(--rtcn-yellow); outline-offset: 2px; }

/* Cookie list */
.rtcn-cat__more { margin: 8px 0 0 42px; }
.rtcn-cat__more summary { display: inline-flex; align-items: center; gap: 4px; color: var(--rtcn-blue); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.rtcn-cat__more summary::-webkit-details-marker { display: none; }
.rtcn-cat__more summary span { color: var(--rtcn-muted); font-weight: 600; }
.rtcn-cat__more summary .rt-icon { transition: transform .2s; }
.rtcn-cat__more[open] summary .rt-icon { transform: rotate(180deg); }
table.rtcn-table { width: 100%; margin: 10px 0 2px; border-collapse: collapse; font-size: 12.5px; line-height: 1.4; }
table.rtcn-table th, table.rtcn-table td { padding: 7px 8px; border: 0; border-bottom: 1px solid var(--rtcn-line); background: none; text-align: left; vertical-align: top; }
table.rtcn-table th { color: var(--rtcn-navy); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
table.rtcn-table td { color: #334155; }
.rtcn-modal table.rtcn-table tbody tr, .rtcn-modal table.rtcn-table tbody tr td, .rtcn-list table.rtcn-table tbody tr, .rtcn-list table.rtcn-table tbody tr td { background: transparent; }
table.rtcn-table code { padding: 2px 6px; border-radius: 6px; background: #eef2f8; color: var(--rtcn-navy); font-size: 12px; white-space: nowrap; }
.rtcn-modal__foot { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; padding: 14px 24px 18px; border-top: 1px solid var(--rtcn-line); background: #fff; }

/* Reopen button */
button.rtcn-reopen { all: unset; box-sizing: border-box; position: fixed; left: 20px; bottom: 20px; z-index: 900; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #a07800; box-shadow: 0 8px 22px rgba(11, 31, 58, .2); cursor: pointer; transition: transform .15s, bottom .25s ease; }
button.rtcn-reopen[hidden] { display: none; }
button.rtcn-reopen:hover { transform: scale(1.06); }
/* Above the mobile booking bar, like the "offers" button on the right. */
@media (max-width: 960px) { body:has(.rts-sticky.is-visible) button.rtcn-reopen { bottom: 92px; } }

/* On the cookie policy page */
.rtcn-inline { margin: 18px 0 8px; }
.rtcn-list h3 { margin: 22px 0 6px; }
.rtcn-list table.rtcn-table { font-size: 14px; }
.rtcn-list table.rtcn-table code { font-size: 13px; }

@media (max-width: 600px) {
	dialog.rtcn { inset: auto 0 0 0; width: 100%; max-width: none; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
	dialog.rtcn::before { left: 50%; right: auto; width: 44px; transform: translateX(-50%); }
	dialog.rtcn-modal { width: 100%; max-width: none; max-height: calc(100dvh - 24px); margin: auto 0 0; border-radius: 22px 22px 0 0; }
	.rtcn-modal__head { padding-left: 18px; }
	.rtcn-modal__body { padding: 14px 16px 6px; }
	.rtcn-cat p.rtcn-cat__text, .rtcn-cat__more { margin-left: 0; }
	.rtcn-modal__foot { grid-template-columns: 1fr 1fr; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
	dialog.rtcn-modal .rtcn-modal__foot button.rtcn-btn--solid { grid-column: 1 / -1; order: -1; }
	table.rtcn-table th:nth-child(3), table.rtcn-table td:nth-child(3) { display: none; }
	button.rtcn-reopen { left: 14px; bottom: 16px; width: 42px; height: 42px; }
	body:has(.rts-sticky.is-visible) button.rtcn-reopen { bottom: 86px; }
}
@media (prefers-reduced-motion: reduce) {
	dialog.rtcn, dialog.rtcn-modal[open], .rtcn-switch span::after { transition: none; animation: none; }
}
