/* ═══════════════════════════════════════════════════════
   CampSuite Public Booking - cs-park.css
   The park's own additions to its booking pages: its notice to guests (.park-notice) and its
   cookie question (.cs-consent). Loaded only for a park that has one of them, by
   Pages/Shared/_ParkPageHead.cshtml, so every other park's pages load exactly what they did.

   Both are built from the portal's own furniture and tokens in booking.css: the notice is a
   .booking-notice--info card, calm and never red, and the cookie question uses the portal's
   colours and radii. Nothing here sets a colour of its own beyond those tokens.
   ═══════════════════════════════════════════════════════ */

/* ─── The park's notice to guests ─────────────────────── */
/* On the booking page it is the first thing in the scrolling box, above every step, so it is
   read on each step without being pinned over the form. On a desktop the box steps aside
   (display: contents) and the notice becomes a strip under the step bar, in view on every step. */
.park-notice {
    flex-shrink: 0;
    margin: 12px 14px 2px;
}

/* Inside the card on the pay, quote and security deposit pages. */
.park-notice--in-card {
    margin: 0 0 18px;
}

.park-notice__body {
    /* The park's own words, line by line as it wrote them. */
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .park-notice:not(.park-notice--in-card) {
        margin: 14px 28px 0;
    }
}

/* ─── The cookie question ─────────────────────────────── */
/* Fixed to the foot of the screen (or of the frame the page sits in), above the page and below
   the portal's own pop-ups, which come later in the page at the same height. Accept and Reject
   are the same button: same size, same colours, same weight, so neither is the easy one. */
.cs-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: 12px;
    pointer-events: none;
}

    .cs-consent[hidden] {
        display: none;
    }

.cs-consent__inner {
    pointer-events: auto;
    max-width: 560px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--c-warm-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 16px 18px;
    font-family: var(--ff-body);
    color: var(--c-text-dark);
}

.cs-consent__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--c-forest-dark);
}

.cs-consent__body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--c-text);
}

.cs-consent__link {
    color: var(--c-forest-dark);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.cs-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.cs-consent__btn {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--c-forest);
    background: white;
    color: var(--c-forest-dark);
    font-family: var(--ff-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

    .cs-consent__btn:hover {
        background: var(--c-mint-light);
    }

    .cs-consent__btn:focus-visible {
        outline: 3px solid var(--c-mint);
        outline-offset: 2px;
    }

/* Fitted into a park's website (cs-framed.js), the frame is as tall as the booking and nothing
   in it scrolls, so the foot of the frame can be a long way below the screen. There the question
   sits at the top of the page instead, in the flow, where the guest meets it first. */
html.is-fitted .cs-consent {
    position: relative;
    padding: 12px 12px 0;
}

/* "Cookie settings": a quiet link, put in the page's footer by cs-consent.js, or under the card
   on a page that has none. */
.cs-consent-open {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: inherit;
    color: var(--c-forest-dark);
    text-decoration: underline;
    cursor: pointer;
}

    .cs-consent-open[hidden] {
        display: none;
    }

.booking-footer .cs-consent-open {
    display: inline;
    margin-left: 4px;
}

.cs-consent-open--loose {
    display: block;
    margin: 0 auto 24px;
    font-size: 13px;
}

@media (prefers-reduced-motion: no-preference) {
    .cs-consent__inner {
        animation: fadeUp 0.3s ease;
    }
}
