/* ==========================================================
   Phoenix Photography — cookie consent
   ========================================================== */

.phoenix-cookie-modal-open {
    overflow: hidden;
}

.phoenix-cookie-banner[hidden],
.phoenix-cookie-overlay[hidden] {
    display: none !important;
}

.phoenix-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;

    padding: 1rem clamp(18px, 3vw, 40px);

    background: rgba(17, 16, 14, 0.97);
    color: #f5f1ea;
    border-top: 1px solid rgba(245, 241, 234, 0.12);
    box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.16);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.phoenix-cookie-banner__inner {
    width: min(100%, 1280px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}

.phoenix-cookie-banner__copy {
    max-width: 740px;
}

.phoenix-cookie-eyebrow {
    margin: 0 0 0.35rem;
    color: #b8946d;
    font-family: var(--font-body, sans-serif);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.phoenix-cookie-title {
    margin: 0;
    color: #f5f1ea;
    font-family: var(--font-heading, serif);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 400;
    line-height: 1.05;
}

.phoenix-cookie-text {
    margin: 0.45rem 0 0;
    color: rgba(245, 241, 234, 0.62);
    font-size: 0.73rem;
    line-height: 1.6;
}

.phoenix-cookie-text a,
.phoenix-cookie-dialog__link {
    color: rgba(245, 241, 234, 0.86);
    text-decoration-color: rgba(184, 148, 109, 0.8);
    text-underline-offset: 0.2em;
}

.phoenix-cookie-banner__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.phoenix-cookie-button {
    appearance: none;
    border: 0;
    border-radius: 0;
    padding: 0.82rem 1rem;

    font: inherit;
    font-size: 0.68rem;
    letter-spacing: 0.045em;
    line-height: 1;

    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.phoenix-cookie-button--primary {
    background: #b8946d;
    color: #171411;
}

.phoenix-cookie-button--primary:hover,
.phoenix-cookie-button--primary:focus-visible {
    background: #c9a783;
}

.phoenix-cookie-button--secondary {
    background: transparent;
    color: rgba(245, 241, 234, 0.86);
    border: 1px solid rgba(245, 241, 234, 0.22);
}

.phoenix-cookie-button--secondary:hover,
.phoenix-cookie-button--secondary:focus-visible {
    border-color: rgba(245, 241, 234, 0.48);
    color: #f5f1ea;
}

.phoenix-cookie-button--text {
    padding-inline: 0.4rem;
    background: transparent;
    color: rgba(245, 241, 234, 0.58);
}

.phoenix-cookie-button--text:hover,
.phoenix-cookie-button--text:focus-visible {
    color: #f5f1ea;
}

.phoenix-cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 3100;

    display: grid;
    place-items: center;
    padding: 24px;

    background: rgba(10, 9, 8, 0.64);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.phoenix-cookie-dialog {
    position: relative;
    width: min(100%, 620px);
    max-height: min(86vh, 760px);
    overflow-y: auto;

    padding: clamp(1.6rem, 4vw, 2.6rem);

    background: #f5f1ea;
    color: #171411;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.phoenix-cookie-dialog .phoenix-cookie-eyebrow {
    margin-bottom: 0.7rem;
}

.phoenix-cookie-dialog h2 {
    max-width: 13ch;
    margin: 0;
    font-family: var(--font-heading, serif);
    font-size: clamp(2.1rem, 6vw, 3.4rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.phoenix-cookie-dialog__intro {
    max-width: 48rem;
    margin: 1.4rem 0 2rem;
    color: rgba(23, 20, 17, 0.66);
    font-size: 0.84rem;
    line-height: 1.7;
}

.phoenix-cookie-dialog__close {
    position: absolute;
    top: 1rem;
    right: 1rem;

    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;

    border: 1px solid rgba(23, 20, 17, 0.12);
    background: transparent;
    color: rgba(23, 20, 17, 0.62);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.phoenix-cookie-choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;

    padding: 1.35rem 0;
    border-top: 1px solid rgba(23, 20, 17, 0.1);
}

.phoenix-cookie-choice:last-of-type {
    border-bottom: 1px solid rgba(23, 20, 17, 0.1);
}

.phoenix-cookie-choice__title,
.phoenix-cookie-choice__text {
    margin: 0;
}

.phoenix-cookie-choice__title {
    color: #171411;
    font-size: 0.82rem;
    font-weight: 500;
}

.phoenix-cookie-choice__text {
    margin-top: 0.35rem;
    color: rgba(23, 20, 17, 0.58);
    font-size: 0.74rem;
    line-height: 1.55;
}

.phoenix-cookie-choice__status {
    color: #b8946d;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.phoenix-cookie-switch {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 26px;
    flex: 0 0 auto;
}

.phoenix-cookie-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.phoenix-cookie-switch span {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(23, 20, 17, 0.18);
    transition: background 160ms ease;
}

.phoenix-cookie-switch span::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;

    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f5f1ea;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
    transition: transform 160ms ease;
}

.phoenix-cookie-switch input:checked + span {
    background: #b8946d;
}

.phoenix-cookie-switch input:checked + span::after {
    transform: translateX(22px);
}

.phoenix-cookie-switch input:focus-visible + span {
    outline: 2px solid #171411;
    outline-offset: 3px;
}

.phoenix-cookie-dialog__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

.phoenix-cookie-dialog__link {
    color: rgba(23, 20, 17, 0.68);
    font-size: 0.7rem;
}

.v2-footer-group [data-cookie-settings] {
    display: inline-flex;
    align-items: center;
    border: 0;
    padding: 0;
    background: none;
    color: rgba(245, 241, 234, 0.64);
    font: inherit;
    font-size: 0.75rem;
    line-height: 1.5;
    letter-spacing: 0.035em;
    text-align: left;
    cursor: pointer;
    transition: color 180ms ease, transform 180ms ease;
}

.v2-footer-group [data-cookie-settings]:hover,
.v2-footer-group [data-cookie-settings]:focus-visible {
    color: var(--v2-paper, #f5f1ea);
    transform: translateX(3px);
}

.phoenix-cookie-footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
}

.phoenix-cookie-footer-links a,
.phoenix-cookie-footer-links button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.phoenix-cookie-footer-links a:hover,
.phoenix-cookie-footer-links a:focus-visible,
.phoenix-cookie-footer-links button:hover,
.phoenix-cookie-footer-links button:focus-visible {
    color: var(--color-accent, #b8946d);
}

@media (max-width: 760px) {
    .phoenix-cookie-banner {
        padding: 1rem 5vw 1.15rem;
    }

    .phoenix-cookie-banner__inner {
        display: block;
    }

    .phoenix-cookie-banner__actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .phoenix-cookie-button {
        padding: 0.78rem 0.88rem;
    }

    .phoenix-cookie-overlay {
        align-items: end;
        padding: 0;
    }

    .phoenix-cookie-dialog {
        width: 100%;
        max-height: 92svh;
        padding: 1.5rem 5vw 2rem;
    }

    .phoenix-cookie-dialog h2 {
        max-width: 10ch;
    }

    .phoenix-cookie-choice {
        gap: 1rem;
    }

    .phoenix-cookie-dialog__actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .phoenix-cookie-button,
    .phoenix-cookie-switch span,
    .phoenix-cookie-switch span::after,
    .v2-footer-group [data-cookie-settings] {
        transition: none;
    }
}
