.avesta-cookie-consent[hidden] { display: none !important; }
.avesta-cookie-consent {
    position: fixed;
    z-index: 200000;
    inset: auto 0 30px;
    display: flex;
    justify-content: center;
    padding: 0 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}
.avesta-cookie-consent.is-open { opacity: 1; visibility: visible; }
.avesta-cookie-consent__dialog {
    box-sizing: border-box;
    --cookie-actions-width: 205px;
    --cookie-column-gap: 12px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--cookie-actions-width);
    grid-template-areas: "intro actions";
    align-items: center;
    column-gap: var(--cookie-column-gap);
    width: min(780px, calc(100vw - 28px));
    max-height: min(76vh, 520px);
    max-height: min(76dvh, 520px);
    overflow: auto;
    padding: 14px 16px;
    border: 1px solid rgba(33, 48, 67, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    color: #45566e;
    box-shadow: 0 8px 24px rgba(20, 31, 46, .17);
    pointer-events: auto;
    transform: translateY(10px);
    transition: transform .2s ease;
    overscroll-behavior: contain;
}
.avesta-cookie-consent.is-open .avesta-cookie-consent__dialog { transform: translateY(0); }
.avesta-cookie-consent__intro { grid-area: intro; min-width: 0; }
.avesta-cookie-consent__controls { display: contents; }
.avesta-cookie-consent__eyebrow { display: none; }
.avesta-cookie-consent__dialog h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.avesta-cookie-consent__description {
    margin: 0;
    color: #1d3048;
    font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .004em;
    line-height: 1.48;
}
.avesta-cookie-consent__description a {
    color: #007482;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.avesta-cookie-consent__description a:hover { color: #004e58; text-decoration: underline; text-underline-offset: 2px; }
.avesta-cookie-consent__categories {
    display: none;
    grid-area: categories;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    padding-top: 12px;
    animation: avesta-cookie-reveal .2s ease both;
}
.avesta-cookie-consent.is-customizing .avesta-cookie-consent__dialog {
    --cookie-actions-width: 205px;
    --cookie-column-gap: 18px;
    grid-template-areas: "intro actions" "categories actions" "foot foot";
    width: min(980px, calc(100vw - 28px));
    row-gap: 8px;
}
.avesta-cookie-consent.is-customizing .avesta-cookie-consent__categories { display: grid; }
.avesta-cookie-consent__category {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid #e5e9ef;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}
.avesta-cookie-consent__category:first-child { background: #f7f9fb; cursor: default; }
.avesta-cookie-consent__category-copy { display: grid; min-width: 0; gap: 4px; }
.avesta-cookie-consent__category-title { color: #1d3048; font-size: .86rem; font-weight: 700; line-height: 1.4; }
.avesta-cookie-consent__category-copy p,
.avesta-cookie-consent__category-description {
    display: block;
    margin: 0;
    color: #4d6078;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.45;
}
.avesta-cookie-consent__always { flex: 0 0 auto; color: #30465f; font-size: .7rem; font-weight: 700; }
.avesta-cookie-consent__switch { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; }
.avesta-cookie-consent__switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.avesta-cookie-consent__switch > span {
    position: relative;
    display: block;
    width: 38px;
    height: 22px;
    border: 1px solid #b9c5d2;
    border-radius: 999px;
    background: #d7dee7;
    transition: background .18s ease, border-color .18s ease;
}
.avesta-cookie-consent__switch > span::after {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .22);
    content: "";
    transition: transform .18s ease;
}
.avesta-cookie-consent__switch input:checked + span { border-color: #168a59; background: #168a59; }
.avesta-cookie-consent__switch input:checked + span::after { transform: translateX(16px); }
.avesta-cookie-consent__switch input:focus-visible + span { outline: 3px solid rgba(22, 138, 89, .22); outline-offset: 3px; }
.avesta-cookie-consent__actions {
    grid-area: actions;
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
}
.avesta-cookie-consent__button {
    display: inline-flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .005em;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.avesta-cookie-consent__button:focus-visible,
.avesta-cookie-consent__close:focus-visible { outline: 3px solid rgba(0, 189, 210, .25); outline-offset: 3px; }
.avesta-cookie-consent__button--accept { background: #e95509; color: #fff; box-shadow: 0 4px 11px rgba(217, 74, 5, .24); }
.avesta-cookie-consent__button--accept:hover { background: #cf4805; }
.avesta-cookie-consent__button--reject { min-height: 48px; border: 0; background: #d7f5f8; color: #005e6b; font-weight: 750; }
.avesta-cookie-consent__button--reject:hover { background: #c3edf2; color: #004b55; }
.avesta-cookie-consent__button--save { display: none; border-color: #e95509; background: #e95509; color: #fff; }
.avesta-cookie-consent.is-customizing .avesta-cookie-consent__button--save { display: inline-flex; }
.avesta-cookie-consent__button--save:hover { background: #cf4805; }
.avesta-cookie-consent__close {
    position: absolute;
    top: 7px;
    right: calc(var(--cookie-actions-width) + var(--cookie-column-gap) + 9px);
    z-index: 1;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #53657b;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.avesta-cookie-consent__close[hidden] { display: none !important; }
.avesta-cookie-consent__categories[hidden] { display: none !important; }
.avesta-cookie-consent__footnote { display: none; margin: 0; color: #52647b; font-size: .75rem; font-weight: 600; line-height: 1.45; }
.avesta-cookie-consent.is-customizing .avesta-cookie-consent__footnote { display: block; grid-area: foot; }
.avesta-cookie-consent.is-customizing .avesta-cookie-consent__actions { grid-row: 1 / span 2; }
.avesta-cookie-consent.is-customizing.has-choice .avesta-cookie-consent__intro { padding-right: 34px; }
body.avesta-cookie-banner-open .avesta-whatsapp-float {
    visibility: visible;
    pointer-events: auto;
    bottom: calc(var(--avesta-cookie-wa-offset, 164px) + env(safe-area-inset-bottom));
}

.footer-bottom-links [data-cookie-settings-open] {
    padding: 0 14px;
    border: 0;
    border-right: 0;
    background: transparent;
    color: rgba(255,255,255,.55);
    font: inherit;
    font-size: .82rem;
    cursor: pointer;
}
.footer-bottom-links [data-cookie-settings-open]:hover { color: #fff; }
.footer-bottom-links [data-cookie-settings-open]:focus-visible { outline: 2px solid #f5bf15; outline-offset: 3px; }

@media (max-width: 760px) {
    .avesta-cookie-consent { inset: auto 0 12px; padding: 0 12px; }
    .avesta-cookie-consent__dialog {
        --cookie-actions-width: 190px;
        --cookie-column-gap: 12px;
        width: min(780px, calc(100vw - 24px));
        padding: 14px;
        border-radius: 12px;
    }
    .avesta-cookie-consent__description { font-size: .84rem; }
    .avesta-cookie-consent__button { min-height: 38px; font-size: .79rem; }
    .avesta-cookie-consent__button--reject { min-height: 44px; }
    .avesta-cookie-consent__categories { grid-template-columns: minmax(0, 1fr); }
    .avesta-cookie-consent__category { min-height: 58px; }
    .avesta-cookie-consent__category-copy p,
    .avesta-cookie-consent__category-description { font-size: .67rem; }
}

@media (max-width: 520px) {
    .avesta-cookie-consent { inset: auto 0 10px; padding: 0 10px; }
    .avesta-cookie-consent__dialog {
        --cookie-actions-width: 0px;
        --cookie-column-gap: 0px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "intro" "actions";
        row-gap: 8px;
        width: min(100%, 430px);
        max-height: min(78vh, 620px);
        max-height: min(78dvh, 620px);
        padding: 14px;
    }
    .avesta-cookie-consent__description { font-size: .79rem; line-height: 1.46; }
    .avesta-cookie-consent__actions { gap: 7px; }
    .avesta-cookie-consent__button { min-height: 38px; padding: 8px; font-size: .76rem; }
    .avesta-cookie-consent__button--reject { min-height: 40px; }
    .avesta-cookie-consent.is-customizing .avesta-cookie-consent__dialog {
        grid-template-areas: "intro" "categories" "actions" "foot";
        width: min(100%, 430px);
    }
    .avesta-cookie-consent.is-customizing .avesta-cookie-consent__actions { grid-row: auto; }
    .avesta-cookie-consent__close { right: 7px; }
    .avesta-cookie-consent__categories { padding-top: 5px; }
    .avesta-cookie-consent__footnote { font-size: .64rem; }

    body.page-global-reservation .avesta-cookie-consent,
    body.page-transfer-search .avesta-cookie-consent,
    body.page-ferry-search .avesta-cookie-consent { bottom: calc(98px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    .avesta-cookie-consent,
    .avesta-cookie-consent__dialog,
    .avesta-cookie-consent__switch > span,
    .avesta-cookie-consent__switch > span::after,
    .avesta-cookie-consent__categories { transition: none !important; animation: none !important; }
}

@keyframes avesta-cookie-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
