/* =========================================================
   BetaCrystal Cookie Consent
   ========================================================= */


/* =========================================================
   Variables
   ========================================================= */

:root {
    --bc-cookie-gold: #C9A06A;
    --bc-cookie-gold-light: #D9B781;

    --bc-cookie-black: #090909;
    --bc-cookie-panel: #111111;

    --bc-cookie-white: #F7F5F1;
    --bc-cookie-text: #D6D2CB;
    --bc-cookie-muted: #96918A;

    --bc-cookie-border: rgba(201, 160, 106, 0.45);
}



/* =========================================================
   Main Banner
   ========================================================= */

.bc-cookie-banner {
    position: fixed;

    left: 24px;
    right: 24px;
    bottom: 24px;

    z-index: 999999;

    display: grid;

    grid-template-columns: minmax(0, 1fr) 170px;

    align-items: center;

    gap: 20px;

    width: calc(100% - 48px);
    max-width: 1050px;

    margin: 0 auto;

    padding: 20px 36px;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            rgba(25, 25, 25, 0.98),
            rgba(8, 8, 8, 0.98)
        );

    border: 1px solid var(--bc-cookie-border);

    box-shadow:
        0 16px 45px rgba(0, 0, 0, 0.50),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;

    color: var(--bc-cookie-white);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* =========================================================
   Banner Content
   ========================================================= */

.bc-cookie-content {
    min-width: 0;
}

.bc-cookie-content h2 {
    margin: 0 0 5px;

    color: var(--bc-cookie-white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;
    font-weight: 400;

    line-height: 1.2;
}

.bc-cookie-content p {
    margin: 0;

    color: var(--bc-cookie-text);

    font-size: 13px;

    line-height: 1.5;
}

.bc-cookie-links {
    margin-top: 6px;
}

.bc-cookie-links a {
    color: var(--bc-cookie-gold-light);

    font-size: 12px;

    text-decoration: none;

    transition: color 0.2s ease;
}

.bc-cookie-links a:hover {
    color: var(--bc-cookie-white);
}

.bc-cookie-links span {
    margin: 0 7px;

    color: var(--bc-cookie-muted);
}


/* =========================================================
   Banner Buttons
   ========================================================= */

.bc-cookie-actions {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.bc-cookie-button {
    width: 100%;

    min-height: 38px;

    padding: 8px 14px;

    box-sizing: border-box;

    border: 1px solid var(--bc-cookie-gold);

    background: transparent;

    color: var(--bc-cookie-white);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 12px;

    font-weight: 500;

    letter-spacing: 0.02em;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.bc-cookie-button:hover {
    background: rgba(201, 160, 106, 0.12);
}

.bc-cookie-accept {
    background: var(--bc-cookie-gold);

    color: var(--bc-cookie-black);
}

.bc-cookie-accept:hover {
    background: var(--bc-cookie-gold-light);

    color: var(--bc-cookie-black);
}


/* =========================================================
   Close Button
   ========================================================= */

.bc-cookie-close {
    position: absolute;

    top: 0px;
    right: 0px;

    width: 24px;
    height: 24px;

    padding: 0 0 2px 0px;

    border: 0;

    background: transparent;

    color: var(--bc-cookie-muted);

    font-size: 18px;

    font-weight: 300;

    line-height: 20px;

    cursor: pointer;
    margin: 8px;
}

.bc-cookie-close:hover {
    color: var(--bc-cookie-white);
    background: var(--bc-cookie-gold);
}


/* =========================================================
   Backdrop
   ========================================================= */

body.bc-cookie-preferences-open::before {
    content: "";

    position: fixed;

    inset: 0;

    z-index: 999998;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(4px);
}


/* =========================================================
   Preferences Drawer
   ========================================================= */

.bc-cookie-preferences-panel {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;

    z-index: 1000000;

    width: 460px;

    max-width: 100%;

    padding: 42px 36px;

    box-sizing: border-box;

    background:
        linear-gradient(
            160deg,
            #171717,
            #090909
        );

    border-left: 1px solid var(--bc-cookie-border);

    box-shadow:
        -20px 0 60px rgba(0, 0, 0, 0.60);

    color: var(--bc-cookie-white);

    overflow-y: auto;

    transform: translateX(100%);

    transition:
        transform 0.3s ease;
}

.bc-cookie-preferences-panel.bc-cookie-open {
    transform: translateX(0);
}


/* =========================================================
   Preferences Header
   ========================================================= */

.bc-cookie-preferences-header {
    padding-bottom: 24px;

    border-bottom: 1px solid rgba(201, 160, 106, 0.25);
}

.bc-cookie-preferences-eyebrow {
    margin-bottom: 8px;

    color: var(--bc-cookie-gold);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.bc-cookie-preferences-header h2 {
    margin: 0;

    color: var(--bc-cookie-white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;

    font-weight: 400;

    line-height: 1.2;
}

.bc-cookie-preferences-header p {
    margin: 12px 0 0;

    color: var(--bc-cookie-text);

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   Categories
   ========================================================= */

.bc-cookie-categories {
    margin-top: 8px;
}

.bc-cookie-category {
    padding: 20px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bc-cookie-category-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.bc-cookie-category-name {
    color: var(--bc-cookie-white);

    font-size: 14px;

    font-weight: 600;
}

.bc-cookie-category-description {
    margin: 8px 0 0;

    color: var(--bc-cookie-muted);

    font-size: 13px;

    line-height: 1.55;
}


/* =========================================================
   Toggle
   ========================================================= */

.bc-cookie-switch {
    position: relative;

    flex: 0 0 auto;

    width: 44px;
    height: 24px;
}

.bc-cookie-switch input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

.bc-cookie-switch-slider {
    position: absolute;

    inset: 0;

    border-radius: 24px;

    background: #333333;

    cursor: pointer;

    transition: background 0.2s ease;
}

.bc-cookie-switch-slider::before {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: var(--bc-cookie-white);

    transition: transform 0.2s ease;
}

.bc-cookie-switch input:checked + .bc-cookie-switch-slider {
    background: var(--bc-cookie-gold);
}

.bc-cookie-switch input:checked + .bc-cookie-switch-slider::before {
    transform: translateX(20px);
}

.bc-cookie-switch input:focus-visible + .bc-cookie-switch-slider {
    outline: 2px solid var(--bc-cookie-gold-light);

    outline-offset: 3px;
}


/* =========================================================
   Always Active
   ========================================================= */

.bc-cookie-always-active {
    display: inline-block;

    color: var(--bc-cookie-gold);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================================
   Preferences Footer
   ========================================================= */

.bc-cookie-preferences-footer {
    margin-top: 28px;
}


/* =========================================================
   Hide Banner
   ========================================================= */

.bc-cookie-banner.bc-cookie-hidden {
    display: none;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 800px) {

    .bc-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;

        width: calc(100% - 24px);

        grid-template-columns: 1fr;

        gap: 14px;

        padding: 20px;
    }

    .bc-cookie-brand {
        display: none;
    }

    .bc-cookie-content h2 {
        font-size: 21px;
    }

    .bc-cookie-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 8px;
    }

    .bc-cookie-preferences-panel {
        width: 100%;

        padding: 32px 24px;
    }
}


@media (max-width: 480px) {

    .bc-cookie-banner {
        padding: 18px;
    }

    .bc-cookie-actions {
        grid-template-columns: 1fr;
    }
}