/* VapoDev cookie consent. Colours come from admin (Vapoholic > Cookie > Cookie Banner > Design) as --vd-cc-* on :root. */

.vd-cc {
    --vd-cc-fg: var(--vd-cc-text, #fff);
    --vd-cc-muted: color-mix(in srgb, var(--vd-cc-fg) 68%, transparent);
    --vd-cc-line: color-mix(in srgb, var(--vd-cc-fg) 12%, transparent);
    --vd-cc-tint: color-mix(in srgb, var(--vd-cc-fg) 6%, transparent);
    --vd-cc-on: var(--vd-cc-accent, #089908);
    --vd-cc-radius: 20px;
    box-sizing: border-box;
    color: var(--vd-cc-fg);
    font-size: 14px;
    line-height: 1.5;
}

.vd-cc *,
.vd-cc *::before,
.vd-cc *::after {
    box-sizing: inherit;
}

.vd-cc [hidden] {
    display: none !important;
}

.vd-cc-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

.vd-cc-copy p {
    margin: 0 0 8px;
}

.vd-cc-copy p:last-child {
    margin-bottom: 0;
}

.vd-cc a,
.vd-cc-link {
    color: var(--vd-cc-link, #ffa40a);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- buttons ---------- */

.vd-cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vd-cc-btn {
    min-height: 44px;
    padding: 8px 22px;
    border: 2px solid currentColor;
    border-radius: var(--vd-cc-radius);
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease-out, opacity 0.15s ease-out;
}

.vd-cc-btn:hover {
    background: var(--vd-cc-tint);
}

.vd-cc-btn--accept {
    border-color: var(--vd-cc-on);
    background: var(--vd-cc-on);
    color: var(--vd-cc-accent-text, #fff);
}

.vd-cc-btn--accept:hover {
    background: var(--vd-cc-on);
    opacity: 0.9;
}

.vd-cc button:focus-visible,
.vd-cc a:focus-visible,
.vd-cc-switch:focus-visible,
.vd-cc-revisit:focus-visible,
.vd-cc-placeholder:focus-visible {
    outline: 2px solid var(--vd-cc-link, #ffa40a);
    outline-offset: 2px;
}

.vd-cc-close {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease-out;
}

.vd-cc-close:hover {
    background: var(--vd-cc-tint);
}

/* ---------- notice bar: full width, like the CookieYes bar on live ---------- */

.vd-cc-notice {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000;
    border: 1px solid transparent;
    background: var(--vd-cc-background, rgba(0, 0, 0, 0.8));
}

.vd-cc-notice[data-position="top"] {
    top: 0;
    bottom: auto;
}

/* Measured from the live CookieYes bar: 115px tall at desktop width. */
.vd-cc-notice__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 15px;
    padding: 16.5px 24px;
}

.vd-cc-notice .vd-cc-title {
    grid-column: 1 / -1;
    margin: 0 0 12px;
    padding-right: 24px;
    font-size: 18px;
    line-height: 24px;
}

.vd-cc-notice .vd-cc-copy {
    line-height: 24px;
}

/* Keep the "Cookie Policy" link on the message's last line. */
.vd-cc-notice .vd-cc-copy p:last-of-type {
    display: inline;
}

.vd-cc-notice .vd-cc-link {
    margin-left: 4px;
}

.vd-cc-notice .vd-cc-actions {
    flex-wrap: nowrap;
    gap: 8px;
}

.vd-cc-notice .vd-cc-btn {
    padding: 8px 27px;
    line-height: 24px;
}

.vd-cc-notice .vd-cc-close {
    position: absolute;
    top: 5px;
    right: 9px;
    width: 24px;
    height: 24px;
}

@media (max-width: 1023px) {
    .vd-cc-notice__inner {
        grid-template-columns: 1fr;
        row-gap: 14px;
        padding: 16px;
    }

    .vd-cc-notice .vd-cc-title {
        margin-bottom: 0;
    }

    .vd-cc-notice .vd-cc-actions {
        flex-wrap: wrap;
    }

    .vd-cc-notice .vd-cc-btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 767px) {
    .vd-cc-notice .vd-cc-btn--accept {
        flex-basis: 100%;
        order: -1;
    }
}

/* ---------- preference centre ---------- */

.vd-cc-prefs {
    width: min(760px, calc(100% - 32px));
    max-height: min(86vh, 780px);
    padding: 0;
    border: 1px solid var(--vd-cc-line);
    border-radius: 16px;
    /* The colour may be translucent (it is by default); layer it on a solid base so text stays readable. */
    background: linear-gradient(var(--vd-cc-background, rgba(0, 0, 0, 0.8)), var(--vd-cc-background, rgba(0, 0, 0, 0.8))), #161616;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.vd-cc-prefs[open] {
    display: flex;
    flex-direction: column;
}

.vd-cc-prefs:focus {
    outline: none;
}

.vd-cc-prefs::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.vd-cc-prefs__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 16px 18px 28px;
    border-bottom: 1px solid var(--vd-cc-line);
}

.vd-cc-prefs__head .vd-cc-title {
    font-size: 20px;
}

.vd-cc-prefs__body {
    flex: 1 1 auto;
    padding: 20px 28px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.vd-cc-intro {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: var(--vd-cc-muted);
}

.vd-cc-intro.is-open {
    display: block;
}

.vd-cc-more {
    margin: 6px 0 0;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--vd-cc-link, #ffa40a);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.vd-cc-prefs__body > .vd-cc-cat:first-of-type {
    margin-top: 16px;
    border-top: 1px solid var(--vd-cc-line);
}

.vd-cc-cat {
    border-bottom: 1px solid var(--vd-cc-line);
}

.vd-cc-cat__head {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 60px;
}

.vd-cc-cat__toggle {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.vd-cc-cat__toggle::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin: 0 4px 0 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.15s ease-out;
}

.vd-cc-cat__toggle[aria-expanded="true"]::before {
    transform: rotate(45deg);
}

.vd-cc-cat__name {
    font-size: 15px;
    font-weight: 700;
}

.vd-cc-cat__count {
    color: var(--vd-cc-muted);
    font-size: 13px;
}

.vd-cc-cat__body {
    padding: 0 0 18px 25px;
    color: var(--vd-cc-muted);
}

.vd-cc-always {
    flex: none;
    padding: 4px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--vd-cc-on) 22%, transparent);
    color: color-mix(in srgb, var(--vd-cc-on) 45%, #fff);
    font-size: 12px;
    font-weight: 700;
}

/* The theme's Tailwind form styles give checkboxes a border, a check icon and a ring; reset all of it. */
.vd-cc .vd-cc-switch,
.vd-cc .vd-cc-switch:checked,
.vd-cc .vd-cc-switch:focus {
    position: relative;
    flex: none;
    width: 44px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--vd-cc-fg) 28%, transparent);
    background-image: none;
    box-shadow: none;
    color: transparent;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.15s ease-out;
}

.vd-cc .vd-cc-switch::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease-out;
}

.vd-cc .vd-cc-switch:checked {
    background: var(--vd-cc-on);
}

.vd-cc .vd-cc-switch:checked::before {
    transform: translateX(20px);
}

.vd-cc-cookies {
    margin: 14px 0 0;
    padding: 0;
    border: 1px solid var(--vd-cc-line);
    border-radius: 10px;
    list-style: none;
    overflow: hidden;
}

.vd-cc-cookies li + li {
    border-top: 1px solid var(--vd-cc-line);
}

.vd-cc-cookies dl {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 4px 16px;
    margin: 0;
    padding: 12px 14px;
    font-size: 13px;
}

.vd-cc-cookies dt {
    color: var(--vd-cc-muted);
}

.vd-cc-cookies dd {
    margin: 0;
    color: var(--vd-cc-fg);
    overflow-wrap: anywhere;
}

.vd-cc-cookies dd:first-of-type {
    font-weight: 700;
}

.vd-cc-empty {
    margin: 10px 0 0;
}

.vd-cc-prefs__foot {
    justify-content: flex-end;
    padding: 16px 28px;
    border-top: 1px solid var(--vd-cc-line);
}

@media (max-width: 640px) {
    .vd-cc-prefs {
        width: 100%;
        max-width: 100%;
        max-height: 92dvh;
        margin: auto 0 0;
        border-radius: 16px 16px 0 0;
    }

    .vd-cc-prefs__head,
    .vd-cc-prefs__body,
    .vd-cc-prefs__foot {
        padding-right: 16px;
        padding-left: 16px;
    }

    .vd-cc-prefs__foot .vd-cc-btn {
        flex: 1 1 100%;
    }

    .vd-cc-cookies dl {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vd-cc-cookies dt:not(:first-child) {
        margin-top: 6px;
    }
}

/* ---------- floating button and blocked-embed placeholder ---------- */

.vd-cc-revisit {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 2147482999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--vd-cc-accent, #089908);
    color: var(--vd-cc-accent-text, #fff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.vd-cc-revisit[data-side="right"] {
    right: 16px;
    left: auto;
}

.vd-cc-revisit[hidden] {
    display: none;
}

.vd-cc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 0;
    background: #000;
    color: #fff;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .vd-cc *,
    .vd-cc *::before,
    .vd-cc-switch,
    .vd-cc-switch::before {
        transition: none !important;
    }
}
