/* =========================================================
   PILUM GROUP COOKIE CONSENT
   1.5 second smooth expand / collapse
   ========================================================= */

.cookie-consent {
    position: fixed;
    right: 42px;
    bottom: 42px;
    z-index: 1000;

    width: min(600px, calc(100vw - 60px));
}


/* =========================================================
   FULL PANEL
   ========================================================= */

.cookie-consent-inner {
    position: relative;

    max-height: 760px;
    overflow: hidden;

    padding: 42px 38px 36px;

    background: #111d27;

    border: 1px solid rgba(231, 164, 59, 0.38);
    border-radius: 12px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.35);

    opacity: 1;

    transform: translateY(0);

    visibility: visible;

    transition:
        max-height 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        padding 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-width 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.9s ease,
        transform 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}


/* =========================================================
   COLLAPSED PANEL
   ========================================================= */

.cookie-consent.is-minimised
.cookie-consent-inner {
    max-height: 0;

    padding-top: 0;
    padding-bottom: 0;

    border-width: 0;

    opacity: 0;

    transform: translateY(24px);

    visibility: hidden;

    pointer-events: none;

    transition:
        max-height 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        padding 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-width 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.85s ease,
        transform 1.5s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 1.5s;
}


/* =========================================================
   HEADING / COPY
   ========================================================= */

.cookie-consent .eyebrow {
    margin: 0 0 10px;

    color: var(--gold2);
}

.cookie-consent h2 {
    margin: 0 0 16px;

    color: var(--text);

    font-size: 28px;
    line-height: 1.2;
}

.cookie-consent p:not(.eyebrow) {
    margin: 0;

    color: #d7dce0;

    font-size: 16px;
    line-height: 1.7;
}

.cookie-consent-status {
    margin-top: 16px !important;

    color: var(--gold2) !important;

    font-size: 13px !important;
    font-weight: 700;
}


/* =========================================================
   CONSENT BUTTONS
   ========================================================= */

.cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;

    margin-top: 28px;
}

.cookie-consent-actions form {
    margin: 0;
}

.cookie-consent-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 58px;

    padding: 14px 22px;

    border-radius: 4px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.cookie-consent-actions form:first-child .btn {
    background: var(--gold);
    border-color: var(--gold);

    color: #071019;
}

.cookie-consent-actions form:first-child .btn:hover {
    background: var(--gold2);
    border-color: var(--gold2);
}

.cookie-consent-actions form:last-child .btn {
    background: transparent;

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

    color: var(--gold2);
}

.cookie-consent-actions form:last-child .btn:hover {
    background: rgba(231, 164, 59, 0.08);

    color: #fff;
}


/* =========================================================
   SUPPORTING TEXT
   ========================================================= */

.cookie-consent-more {
    margin: 24px 0 0 !important;

    padding-top: 20px;

    border-top: 1px solid var(--line);

    color: var(--muted) !important;

    font-size: 12px !important;
    line-height: 1.6 !important;
}

.cookie-consent-more a {
    color: var(--gold2);

    text-decoration: underline;
}

.cookie-consent-more a:hover {
    color: #fff;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.cookie-consent-close {
    position: absolute;
    top: 16px;
    right: 18px;

    width: 32px;
    height: 32px;

    padding: 0;

    background: transparent;
    border: 0;

    color: var(--muted);

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.cookie-consent-close:hover {
    color: #fff;
}


/* =========================================================
   MINIMISED COOKIE SETTINGS BUTTON
   ========================================================= */

.cookie-consent-minimised {
    position: absolute;
    right: 0;
    bottom: 0;

    padding: 12px 18px;

    background: #111d27;

    border: 1px solid rgba(231, 164, 59, 0.55);
    border-radius: 6px;

    color: var(--gold2);

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3);

    opacity: 0;

    transform: translateY(16px);

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.6s ease,
        transform 0.8s ease,
        visibility 0s linear 0.8s;
}


.cookie-consent.is-minimised
.cookie-consent-minimised {
    opacity: 1;

    transform: translateY(0);

    visibility: visible;

    pointer-events: auto;

    transition:
        opacity 0.6s ease 0.8s,
        transform 0.8s ease 0.7s,
        visibility 0s linear 0s;
}


.cookie-consent-minimised:hover {
    background: #172631;

    color: #fff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .cookie-consent {
        right: 24px;
        bottom: 24px;

        width: min(540px, calc(100vw - 48px));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .cookie-consent {
        right: 16px;
        bottom: 16px;
        left: 16px;

        width: auto;
    }

    .cookie-consent-inner {
        padding: 32px 24px 26px;
    }

    .cookie-consent h2 {
        font-size: 24px;
    }

    .cookie-consent p:not(.eyebrow) {
        font-size: 14px;
    }

    .cookie-consent-actions .btn {
        min-height: 52px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cookie-consent-inner,
    .cookie-consent-minimised {
        transition: none;
    }

}
