/* cookie banner (consent.js) — glass panel in the site palette */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 9990; /* above nav (50) and modal (90), BELOW custom cursor layers (9997–9999) */
    width: min(760px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 16px 20px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(23, 37, 29, 0.86);
    border: 1px solid rgba(242, 208, 164, 0.22);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    color: rgba(255, 255, 255, 0.92);
    font: 500 14px/1.5 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size-adjust: 0.56;
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}
.cookie-banner.is-open { transform: translate(-50%, 0); opacity: 1; }
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; flex: 1; }
.cookie-text a { color: #f2d0a4; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-btn {
    appearance: none;
    border: 1px solid rgba(242, 208, 164, 0.55);
    background: transparent;
    color: #f2d0a4;
    border-radius: 12px;
    padding: 10px 16px;
    font: 700 14px 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size-adjust: 0.56;
    cursor: pointer;
    white-space: nowrap;
}
.cookie-btn:hover { background: rgba(242, 208, 164, 0.1); }
.cookie-btn--accept { background: #f2d0a4; color: #17251d; border-color: #f2d0a4; }
.cookie-btn--accept:hover { background: #f7dcb8; }
.cookie-btn:focus-visible { outline: 2px solid #f2d0a4; outline-offset: 2px; }

@media (max-width: 640px) {
    .cookie-banner { flex-direction: column; align-items: stretch; bottom: 12px; width: calc(100% - 24px); font-size: 13px; }
    .cookie-actions { flex-direction: column-reverse; }
    .cookie-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .cookie-banner { transition: none; }
}

/* consent checkbox in the booking form */
.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}
.consent-check input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    /* в стиле остальных флажков формы: кремовая рамка, при выборе — заливка с галочкой */
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    border: 1.5px solid rgba(255, 246, 234, 0.55);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.consent-check input::after {
    content: "";
    width: 10px;
    height: 6px;
    margin-top: -2px;
    border-left: 2px solid #17251d;
    border-bottom: 2px solid #17251d;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.consent-check input:checked {
    background: #f2d0a4;
    border-color: #f2d0a4;
}
.consent-check input:checked::after { transform: rotate(-45deg) scale(1); }
.consent-check input:focus-visible { outline: 2px solid #f2d0a4; outline-offset: 2px; }
.consent-check input:user-invalid { border-color: #ff9b8a; }
.consent-check a,
.legal-links a,
.modal-legal a { color: #f2d0a4; text-decoration: underline; text-underline-offset: 2px; }

.legal-links {
    margin: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}
.legal-links a,
.legal-links button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;             /* удобно попасть пальцем */
    color: rgba(255, 255, 255, 0.75);
}
.legal-links button {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.legal-requisites { margin-top: 8px; font-size: 12.5px; line-height: 1.5; }
.modal-legal { margin: 10px 0 0; font-size: 12px; opacity: 0.75; }
