/* ==========================================================
   StockFlow · Cookie 同意横幅
   ========================================================== */

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 18px 0;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--stock-border);
    box-shadow: 0 -18px 45px rgba(31, 41, 55, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    .cookie-consent[hidden] {
        display: none !important;
    }

.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-copy {
    flex: 1 1 520px;
    max-width: 780px;
}

.cookie-consent h2 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
}

.cookie-consent p {
    margin: 0;
    color: var(--stock-text-muted);
    font-size: .88rem;
    line-height: 1.7;
}

    .cookie-consent p a {
        color: var(--stock-primary-dark);
        font-weight: 600;
    }

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

    .cookie-consent-actions .btn {
        white-space: nowrap;
    }

body.cookie-banner-open {
    padding-bottom: 120px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 767.98px) {
    .cookie-consent {
        padding: 16px 0;
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-consent-copy {
        flex: 0 1 auto;
        max-width: 100%;
    }

    .cookie-consent-actions {
        width: 100%;
    }

        .cookie-consent-actions .btn {
            flex: 1 1 100%;
        }

    body.cookie-banner-open {
        padding-bottom: 230px;
    }

    body.cookie-banner-open .back-to-top {
        opacity: 0;
        visibility: hidden;
    }
}
