/* ==========================================================================
   Trend Scoop — Cookie Consent
   ========================================================================== */

.ts-cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    pointer-events: none;
}

.ts-cookie-consent.is-visible {
    display: block;
}

.ts-cookie-consent__bar {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 9px;
    background: linear-gradient(100deg, #070a0d 0%, #0b0e11 100%);
    color: #fff;
    box-shadow: 0 18px 55px rgba(0,0,0,.48);
    pointer-events: auto;
}

.ts-cookie-consent__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    transform: rotate(-22deg);
}

.ts-cookie-consent__cookie-mark {
    display: block;
    transform: rotate(22deg);
}

.ts-cookie-consent__content {
    min-width: 0;
}

.ts-cookie-consent__content h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.ts-cookie-consent__content p {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.55;
}

.ts-cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-cookie-consent__button {
    min-width: 118px;
    height: 42px;
    padding: 0 18px;
    border-radius: 5px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.ts-cookie-consent__button--outline {
    border: 1px solid rgba(255,255,255,.72);
    background: transparent;
    color: #fff;
}

.ts-cookie-consent__button--outline:hover {
    background: rgba(255,255,255,.08);
}

.ts-cookie-consent__button--accept {
    border: 1px solid #e50914;
    background: #e50914;
    color: #fff;
}

.ts-cookie-consent__button--accept:hover {
    background: #c90711;
    border-color: #c90711;
}

.ts-cookie-consent__close,
.ts-cookie-consent__panel-close {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.ts-cookie-consent__close {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.ts-cookie-consent__panel {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.68);
    pointer-events: auto;
}

.ts-cookie-consent__panel.is-visible {
    display: flex;
}

.ts-cookie-consent__panel-card {
    position: relative;
    width: min(520px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    background: #080a0c;
    color: #fff;
    box-shadow: 0 25px 80px rgba(0,0,0,.55);
}

.ts-cookie-consent__panel-card h2 {
    margin: 0 40px 9px 0;
    font-size: 23px;
}

.ts-cookie-consent__panel-intro {
    margin: 0 0 22px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    line-height: 1.6;
}

.ts-cookie-consent__panel-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 27px;
}

.ts-cookie-consent__choices {
    border-top: 1px solid rgba(255,255,255,.11);
}

.ts-cookie-consent__choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.11);
    cursor: pointer;
}

.ts-cookie-consent__choice span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ts-cookie-consent__choice strong {
    font-size: 14px;
}

.ts-cookie-consent__choice small {
    color: rgba(255,255,255,.62);
    font-size: 12px;
    line-height: 1.45;
}

.ts-cookie-consent__choice input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    accent-color: #e50914;
}

.ts-cookie-consent__panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.ts-cookie-consent__privacy-link {
    display: inline-block;
    margin-top: 17px;
    color: #fff;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html.ts-cookie-consent-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .ts-cookie-consent__bar {
        grid-template-columns: 48px minmax(0,1fr) 34px;
    }

    .ts-cookie-consent__actions {
        grid-column: 2 / 4;
        justify-content: flex-end;
    }
}

@media (max-width: 620px) {
    .ts-cookie-consent__bar {
        left: 10px;
        right: 10px;
        bottom: 10px;
        grid-template-columns: 44px minmax(0,1fr) 30px;
        gap: 12px;
        padding: 16px;
    }

    .ts-cookie-consent__icon {
        width: 42px;
        height: 42px;
        font-size: 25px;
    }

    .ts-cookie-consent__content h2 {
        font-size: 16px;
    }

    .ts-cookie-consent__content p {
        font-size: 12px;
    }

    .ts-cookie-consent__actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ts-cookie-consent__button {
        width: 100%;
        min-width: 0;
    }

    .ts-cookie-consent__actions .ts-cookie-consent__button--accept {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .ts-cookie-consent__actions .ts-cookie-consent__button--outline {
        grid-row: 2;
    }

    .ts-cookie-consent__panel-card {
        padding: 24px 20px;
    }

    .ts-cookie-consent__panel-actions {
        flex-direction: column;
    }
}
