
/* =====================================================
   BLACK ROCKET AGENCY
   ===================================================== */

:root {
    --br-orange: #364BFF;
    --br-ink: #171717;
    --br-paper: #F0EEE8;
    --br-muted: #77736B;
    --br-line: #D8D4CA;
    --br-white: #FFFFFF;
}

/* RESET LOCAL */

#cookieConsent,
#cookiePreferences,
#cookieConsent *,
#cookiePreferences * {
    box-sizing: border-box;
}

/* HIDDEN STATE */

#cookieConsent[hidden],
#cookiePreferences[hidden] {
    display: none !important;
}

/* =====================================================
   MAIN PRIVACY PANEL
   ===================================================== */

#cookieConsent {
    position: fixed !important;
    z-index: 999999 !important;
    right: 32px !important;
    bottom: 32px !important;

    width: min(440px, calc(100vw - 40px)) !important;
    max-height: calc(100vh - 64px);
    overflow-y: auto;

    padding: 30px !important;

    background: var(--br-paper) !important;
    color: var(--br-ink) !important;

    border: 1px solid var(--br-line) !important;
    border-radius: 2px !important;

    box-shadow: 0 18px 65px rgba(0,0,0,.18) !important;

    font-family: inherit;
    text-align: left;
    line-height: 1.5;
}

/* CONTENT LAYOUT */

#cookieConsent .cookie-consent__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* HEADER */

#cookieConsent .cookie-consent__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#cookieConsent .cookie-consent__symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    flex-shrink: 0;

    background: var(--br-orange);
    color: var(--br-ink);

    font-size: 21px;
    border-radius: 50%;
}

#cookieConsent .cookie-consent__tag {
    color: var(--br-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    border: none;
    box-shadow: none;
}

/* MAIN TITLE */

#cookieConsent .cookie-consent__title {
    margin: 0 !important;

    color: var(--br-ink) !important;

    font-size: clamp(27px, 5vw, 34px) !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    letter-spacing: -1.5px !important;
}

#cookieConsent .cookie-consent__title span {
    display: block;

    color: var(--br-orange) !important;

    text-shadow: none;
    font-style: italic;
    font-weight: 400;
}

/* DESCRIPTION */

#cookieConsent .cookie-consent__description {
    margin: 0 !important;

    color: #55534E !important;

    font-size: 13px !important;
    line-height: 1.8 !important;
    font-weight: 400;
}

/* DIVIDER */

#cookieConsent .cookie-consent__divider {
    width: 100%;
    height: 1px;

    margin: 0;

    background: var(--br-line);
}

/* STATUS */

#cookieConsent .cookie-consent__status {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--br-muted) !important;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;

    text-shadow: none;
}

/* ACTIONS */

#cookieConsent .cookie-consent__actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
}

#cookieConsent .cookie-consent__button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 46px;

    padding: 12px 16px !important;
    margin: 0 !important;

    border-radius: 0 !important;

    font-family: inherit;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;

    cursor: pointer;
    transition: background .25s ease, color .25s ease,
                border-color .25s ease;
}

/* ACCEPT */

#cookieConsent .cookie-consent__button--accept {
    background: var(--br-orange) !important;
    color: var(--br-ink) !important;

    border: 1px solid var(--br-orange) !important;
}

#cookieConsent .cookie-consent__button--accept:hover {
    background: var(--br-ink) !important;
    color: var(--br-white) !important;
    border-color: var(--br-ink) !important;
}

/* REJECT */

#cookieConsent .cookie-consent__button--reject {
    background: transparent !important;
    color: var(--br-ink) !important;

    border: 1px solid var(--br-line) !important;
}

#cookieConsent .cookie-consent__button--reject:hover {
    border-color: var(--br-ink) !important;
}

/* SETTINGS */

#cookieConsent .cookie-consent__button--settings {
    background: transparent !important;
    color: var(--br-muted) !important;

    border: none !important;
    min-height: 30px;
}

#cookieConsent .cookie-consent__button--settings:hover {
    color: var(--br-orange) !important;
}

/* FOOTER */

#cookieConsent .cookie-consent__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    padding-top: 15px;
    border-top: 1px solid var(--br-line);

    color: var(--br-muted) !important;
    font-size: 9px;
    letter-spacing: .5px;
}

#cookieConsent .cookie-consent__footer a {
    color: var(--br-ink) !important;
    text-decoration: none;
    font-weight: 600;
}

#cookieConsent .cookie-consent__footer a:hover {
    color: var(--br-orange) !important;
}

/* =====================================================
   PREFERENCES MODAL
   ===================================================== */

#cookiePreferences {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000000 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(23,23,23,.65) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#cookiePreferences .cookie-preferences__panel {
    position: relative;

    width: min(480px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;

    padding: 36px;

    background: var(--br-paper) !important;
    color: var(--br-ink) !important;

    border: 1px solid var(--br-line);
    border-radius: 2px;

    box-shadow: 0 25px 80px rgba(0,0,0,.25);
}

#cookiePreferences .cookie-preferences__title {
    margin: 0 35px 15px 0;

    color: var(--br-ink) !important;

    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -1px;

    text-shadow: none;
}

#cookiePreferences p {
    color: #55534E !important;
    font-size: 13px;
    line-height: 1.7;
}

#cookiePreferences .cookie-preferences__option {
    padding: 17px 0;
    border-bottom: 1px solid var(--br-line);
}

#cookiePreferences .cookie-preferences__option label {
    color: var(--br-ink) !important;
    font-size: 13px;
    font-weight: 700;
}

#cookiePreferences .cookie-preferences__option small {
    display: block;
    margin-top: 7px;

    color: var(--br-muted) !important;
    font-size: 12px;
    line-height: 1.6;
}

#cookiePreferences input[type="checkbox"] {
    accent-color: var(--br-orange);
    margin-right: 8px;
}

#cookiePreferences .cookie-preferences__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

#cookiePreferences .cookie-preferences__button {
    width: 100%;
    min-height: 45px;
    padding: 12px;

    border-radius: 0;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

#cookiePreferences .cookie-preferences__button--save {
    background: var(--br-orange);
    color: var(--br-ink);
    border: 1px solid var(--br-orange);
}

#cookiePreferences .cookie-preferences__button--cancel {
    background: transparent;
    color: var(--br-ink);
    border: 1px solid var(--br-line);
}

#cookiePreferences .cookie-preferences__close {
    position: absolute;
    top: 17px;
    right: 20px;

    padding: 0;
    background: transparent;
    border: none;

    color: var(--br-ink);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

/* =====================================================
   ACCESSIBILITY & RESPONSIVE
   ===================================================== */

#cookieConsent button:focus-visible,
#cookiePreferences button:focus-visible,
#cookiePreferences input:focus-visible {
    outline: 2px solid var(--br-orange);
    outline-offset: 3px;
}

@media (max-width: 575px) {

    #cookieConsent {
        right: 16px !important;
        bottom: 16px !important;

        width: calc(100vw - 32px) !important;
        max-height: calc(100dvh - 32px);

        padding: 23px !important;
    }

    #cookieConsent .cookie-consent__content {
        gap: 16px;
    }

    #cookieConsent .cookie-consent__title {
        font-size: 29px !important;
    }

    #cookiePreferences {
        padding: 14px;
    }

    #cookiePreferences .cookie-preferences__panel {
        padding: 26px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #cookieConsent *,
    #cookiePreferences * {
        transition: none !important;
    }
}
