/* Cookie banner — C01 bar, C02 card, C03 choice screen from the block library.
   Colours and fonts come from the Elementor kit, so every restaurant gets its
   own palette. Everything hangs off #gv-consent: theme and kit button styles
   cannot outrank an ID, and `all: unset` clears what they would add. */

#gv-consent {
    --gv-ck-primary: var(--e-global-color-primary, #345259);
    --gv-ck-secondary: var(--e-global-color-secondary, #A2854B);
    --gv-ck-accent: var(--e-global-color-accent, #B87030);
    --gv-ck-text: var(--e-global-color-text, #2B2A26);
    --gv-ck-surface: var(--e-global-color-gvsurf1, #EAE2D0);
    --gv-ck-surface-alt: var(--e-global-color-gvsurf2, #F1EADB);
    --gv-ck-muted: var(--e-global-color-gvmuted, #7E8A7D);
    --gv-ck-ease: cubic-bezier(.2, .7, .2, 1);
    --gv-ck-line: color-mix(in srgb, var(--gv-ck-primary) 14%, transparent);
    --gv-ck-name: var(--gv-ck-primary);
    --gv-ck-switch-on: var(--gv-ck-primary);
    --gv-ck-switch-off: color-mix(in srgb, var(--gv-ck-primary) 22%, transparent);
    font-family: var(--e-global-typography-text-font-family), Georgia, serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

#gv-consent *,
#gv-consent *::before,
#gv-consent *::after { box-sizing: border-box; }

#gv-consent [hidden] { display: none !important; }

#gv-consent button {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#gv-consent :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#gv-consent .gv-consent__dialog:focus { outline: none; }

#gv-consent p,
#gv-consent h2 { margin: 0; padding: 0; border: 0; text-transform: none; letter-spacing: normal; }

#gv-consent .gv-consent__eyebrow,
#gv-consent .gv-consent__category-name,
#gv-consent .gv-consent__always,
#gv-consent .gv-consent__btn,
#gv-consent .gv-consent__more,
#gv-consent .gv-consent__reopen {
    font-family: var(--e-global-typography-accent-font-family), sans-serif;
    font-weight: var(--e-global-typography-accent-font-weight, 700);
    text-transform: uppercase;
    line-height: 1;
}

#gv-consent .gv-consent__title {
    font-family: var(--e-global-typography-primary-font-family), Georgia, serif;
    font-weight: 400;
    font-style: normal;
    color: inherit;
}

#gv-consent .gv-consent__text { font-size: 16px; line-height: 1.6; }

#gv-consent .gv-consent__link {
    color: var(--gv-ck-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .3s;
}

#gv-consent .gv-consent__link:hover { color: var(--gv-ck-accent); }

#gv-consent .gv-consent__links { white-space: nowrap; }
#gv-consent .gv-consent__sep { opacity: .6; }

/* The panel opens as a popover in the top layer. These undo the browser's own
   popover styles; each layout positions it again below. */
#gv-consent .gv-consent__panel {
    inset: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    background: transparent;
    color: inherit;
}

#gv-consent .gv-consent__panel::backdrop { display: none; }

/* Category rows and switches */

#gv-consent .gv-consent__category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--gv-ck-line);
}

#gv-consent .gv-consent__category-copy { min-width: 0; }

#gv-consent .gv-consent__category-name {
    font-size: 14px;
    letter-spacing: .18em;
    color: var(--gv-ck-name);
}

#gv-consent .gv-consent__category-text {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--gv-ck-muted);
}

#gv-consent .gv-consent__always {
    flex-shrink: 0;
    padding-top: 4px;
    font-size: 13px;
    letter-spacing: .16em;
    color: var(--gv-ck-muted);
}

#gv-consent .gv-consent__switch {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 26px;
    border-radius: 13px;
    background: var(--gv-ck-switch-off);
    transition: background .3s;
}

#gv-consent .gv-consent__switch[aria-checked="true"] { background: var(--gv-ck-switch-on); }

#gv-consent .gv-consent__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gv-ck-surface-alt);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: left .3s var(--gv-ck-ease);
}

#gv-consent .gv-consent__switch[aria-checked="true"] .gv-consent__knob { left: 23px; }

/* Buttons */

#gv-consent .gv-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    font-size: 15px;
    letter-spacing: .18em;
    text-indent: .09em;
    text-align: center;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background .3s, color .3s, border-color .3s;
}

#gv-consent .gv-consent__btn--outline {
    background: transparent;
    color: var(--gv-ck-primary);
    border-color: color-mix(in srgb, var(--gv-ck-primary) 50%, transparent);
}

#gv-consent .gv-consent__btn--outline:hover {
    background: color-mix(in srgb, var(--gv-ck-primary) 6%, transparent);
    border-color: var(--gv-ck-primary);
}

#gv-consent .gv-consent__btn--solid {
    background: var(--gv-ck-primary);
    color: var(--gv-ck-surface);
    border-color: var(--gv-ck-primary);
}

#gv-consent .gv-consent__btn--solid:hover {
    background: var(--gv-ck-accent);
    border-color: var(--gv-ck-accent);
}

/* After a choice: the pill that reopens the banner, and a short confirmation */

#gv-consent .gv-consent__after {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99980;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: calc(100vw - 40px);
    pointer-events: none;
    animation: gv-ck-fade .5s both;
}

#gv-consent .gv-consent__after > * { pointer-events: auto; }

#gv-consent .gv-consent__reopen {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    background: var(--gv-ck-surface-alt);
    color: var(--gv-ck-primary);
    font-size: 13px;
    letter-spacing: .18em;
    box-shadow: 0 8px 22px rgba(20, 32, 36, .3);
    transition: background .3s;
}

#gv-consent .gv-consent__reopen:hover { background: var(--gv-ck-surface); }

#gv-consent .gv-consent__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gv-ck-secondary);
}

#gv-consent .gv-consent__message {
    padding: 6px 12px;
    background: color-mix(in srgb, var(--gv-ck-primary) 88%, transparent);
    color: var(--gv-ck-surface);
    font-size: 15px;
    font-style: italic;
    animation: gv-ck-fade .4s both;
}

/* C01 — bar along the bottom */

#gv-consent.gv-consent--bar {
    --gv-ck-line: color-mix(in srgb, var(--gv-ck-surface) 16%, transparent);
    --gv-ck-name: var(--gv-ck-secondary);
    --gv-ck-switch-on: var(--gv-ck-secondary);
    --gv-ck-switch-off: color-mix(in srgb, var(--gv-ck-surface) 22%, transparent);
}

#gv-consent.gv-consent--bar .gv-consent__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    max-height: 100dvh;
    overflow: auto;
    background: var(--gv-ck-primary);
    color: var(--gv-ck-surface);
    border-top: 1px solid color-mix(in srgb, var(--gv-ck-secondary) 55%, transparent);
    box-shadow: 0 -14px 40px rgba(20, 32, 36, .3);
    animation: gv-ck-up .6s var(--gv-ck-ease) both;
}

#gv-consent.gv-consent--bar .gv-consent__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 36px;
    padding: 10px 32px 4px;
    border-bottom: 1px solid color-mix(in srgb, var(--gv-ck-surface) 12%, transparent);
    animation: gv-ck-fade .4s both;
}

#gv-consent.gv-consent--bar .gv-consent__always { color: color-mix(in srgb, var(--gv-ck-surface) 75%, transparent); }

#gv-consent.gv-consent--bar .gv-consent__row {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 32px;
}

#gv-consent.gv-consent--bar .gv-consent__text {
    flex: 1;
    min-width: 0;
    line-height: 1.55;
    color: color-mix(in srgb, var(--gv-ck-surface) 90%, transparent);
}

#gv-consent.gv-consent--bar .gv-consent__link { color: var(--gv-ck-surface); }
#gv-consent.gv-consent--bar .gv-consent__link:hover { color: var(--gv-ck-secondary); }

#gv-consent.gv-consent--bar .gv-consent__buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#gv-consent.gv-consent--bar .gv-consent__btn--quiet {
    padding: 0 10px;
    color: var(--gv-ck-surface);
    text-decoration: underline;
    text-underline-offset: 5px;
}

#gv-consent.gv-consent--bar .gv-consent__btn--quiet:hover { color: var(--gv-ck-secondary); }

#gv-consent.gv-consent--bar .gv-consent__btn--outline {
    color: var(--gv-ck-surface);
    border-color: color-mix(in srgb, var(--gv-ck-surface) 55%, transparent);
}

#gv-consent.gv-consent--bar .gv-consent__btn--outline:hover {
    background: color-mix(in srgb, var(--gv-ck-surface) 10%, transparent);
    border-color: var(--gv-ck-surface);
}

#gv-consent.gv-consent--bar .gv-consent__btn--solid {
    background: var(--gv-ck-secondary);
    color: var(--gv-ck-primary);
    border-color: var(--gv-ck-secondary);
}

#gv-consent.gv-consent--bar .gv-consent__btn--solid:hover {
    background: var(--gv-ck-surface);
    border-color: var(--gv-ck-surface);
}

/* C02 — floating card, bottom left */

#gv-consent.gv-consent--card .gv-consent__panel {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 99990;
    width: 400px;
    max-width: calc(100vw - 48px);
    max-height: calc(100dvh - 48px);
    overflow: auto;
    padding: 28px 28px 24px;
    background: var(--gv-ck-surface-alt);
    color: var(--gv-ck-text);
    box-shadow: 0 26px 60px rgba(20, 32, 36, .42);
    animation: gv-ck-pop .6s var(--gv-ck-ease) both;
}

#gv-consent.gv-consent--card .gv-consent__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: .24em;
    color: var(--gv-ck-secondary);
}

#gv-consent .gv-consent__rule {
    width: 34px;
    height: 1px;
    background: var(--gv-ck-secondary);
}

#gv-consent.gv-consent--card .gv-consent__title {
    margin-bottom: 12px;
    font-size: 28px;
    line-height: 1.1;
    color: var(--gv-ck-primary);
}

#gv-consent.gv-consent--card .gv-consent__text { margin-bottom: 18px; color: var(--gv-ck-text); }

#gv-consent .gv-consent__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 16px;
    font-size: 14px;
    letter-spacing: .18em;
    color: var(--gv-ck-primary);
    transition: color .3s;
}

#gv-consent .gv-consent__more:hover { color: var(--gv-ck-accent); }

#gv-consent .gv-consent__chevron {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .3s;
}

#gv-consent.is-expanded .gv-consent__chevron { transform: rotate(-135deg) translate(-2px, -2px); }

#gv-consent.gv-consent--card .gv-consent__options { margin-bottom: 16px; animation: gv-ck-fade .4s both; }

#gv-consent .gv-consent__buttons--pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Side by side the labels may wrap, as not every restaurant has a condensed font. */
#gv-consent .gv-consent__buttons--pair .gv-consent__btn,
#gv-consent .gv-consent__buttons--three .gv-consent__btn {
    padding: 8px 12px;
    white-space: normal;
    line-height: 1.2;
}

/* C03 — centred choice screen */

#gv-consent.gv-consent--modal .gv-consent__panel {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 32, 36, .62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: gv-ck-fade .4s both;
}

#gv-consent.gv-consent--modal .gv-consent__dialog {
    width: 100%;
    max-width: 580px;
    max-height: 100%;
    overflow: auto;
    background: var(--gv-ck-surface);
    color: var(--gv-ck-text);
    box-shadow: 0 34px 80px rgba(10, 18, 20, .5);
    animation: gv-ck-pop .6s var(--gv-ck-ease) .08s both;
}

#gv-consent .gv-consent__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 32px 22px;
    background: var(--gv-ck-primary);
    color: var(--gv-ck-surface);
}

#gv-consent.gv-consent--modal .gv-consent__eyebrow {
    margin-bottom: 10px;
    font-size: 13px;
    letter-spacing: .24em;
    color: var(--gv-ck-secondary);
}

#gv-consent.gv-consent--modal .gv-consent__title { font-size: 30px; line-height: 1.08; }

#gv-consent .gv-consent__logo { flex-shrink: 0; margin-bottom: 6px; opacity: .8; }

#gv-consent .gv-consent__logo img {
    display: block;
    width: auto;
    max-width: 140px;
    height: 14px;
    object-fit: contain;
}

#gv-consent .gv-consent__body { padding: 22px 32px 28px; }

#gv-consent.gv-consent--modal .gv-consent__text { margin-bottom: 14px; }

#gv-consent .gv-consent__buttons--three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid var(--gv-ck-line);
}

html.gv-consent-locked { overflow: hidden; }

/* Small screens */

@media (max-width: 940px) {
    #gv-consent.gv-consent--bar .gv-consent__row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px 22px;
    }

    #gv-consent.gv-consent--bar .gv-consent__options {
        grid-template-columns: minmax(0, 1fr);
        padding: 6px 22px 2px;
    }

    #gv-consent.gv-consent--bar .gv-consent__buttons { flex-wrap: wrap; }
    #gv-consent.gv-consent--bar .gv-consent__btn { flex: 1 1 auto; }

    #gv-consent.gv-consent--card .gv-consent__panel {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 24px);
        padding: 22px 20px 20px;
    }

    #gv-consent .gv-consent__buttons--three { grid-template-columns: minmax(0, 1fr); }
    #gv-consent .gv-consent__body { padding: 18px 20px 22px; }
    #gv-consent .gv-consent__head { padding: 22px 20px 18px; }
    #gv-consent.gv-consent--modal .gv-consent__title { font-size: 25px; }
    #gv-consent.gv-consent--modal .gv-consent__panel { padding: 12px; }
}

@keyframes gv-ck-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes gv-ck-pop { from { transform: translateY(22px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gv-ck-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    #gv-consent *,
    #gv-consent .gv-consent__panel { animation: none !important; transition: none !important; }
}

@media print {
    #gv-consent { display: none !important; }
}

/* [goodvibes_legal_links] */
.gv-legal-links { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .1em; }
.gv-legal-links__sep { opacity: .6; }
