/* Cookie Consent Banner */
.cookie-banner-wrapper {
    position: fixed;
    bottom: 28px;
    right: 64px;
    z-index: 99999;
    max-width: 480px;
    width: calc(100vw - 84px);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

.cookie-banner-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cookie-banner-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 30px 28px 26px;
    box-sizing: border-box;
    color: #111827;
}

/* Header */
.cookie-banner-header {
    text-align: center;
    margin-bottom: 22px;
}

.cookie-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.cookie-icon-wrap svg {
    display: block;
}

.cookie-banner-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    letter-spacing: -0.2px;
    font-family: var(--font-primary, inherit);
}

.cookie-banner-desc {
    font-size: 14.5px;
    line-height: 1.5;
    color: #374151;
    margin: 0;
    padding: 0 4px;
}

/* Actions Row */
.cookie-banner-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.cookie-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 12px;
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1.25;
    font-family: var(--font-primary, inherit);
}

.cookie-btn-primary {
    background-color: #00A4EB;
    color: #ffffff;
    border: 1px solid #00A4EB;
}

.cookie-btn-primary:hover {
    background-color: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
}

.cookie-btn-dark {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.cookie-btn-dark:hover {
    background-color: #262626;
    border-color: #262626;
    color: #ffffff;
}

.cookie-btn-outline {
    background-color: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.cookie-btn-outline:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

/* Details Section */
.cookie-banner-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    border-top: 1px solid #f0f2f5;
    padding-top: 20px;
}

.cookie-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cookie-detail-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    font-family: var(--font-primary, inherit);
}

.cookie-detail-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
    padding: 0 8px;
}

/* Mobile Responsiveness - Compact bottom sheet (BUG-34) */
@media (max-width: 768px) {
    .cookie-banner-wrapper {
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: 440px;
        margin: 0 auto;
        max-height: 48vh;
    }

    .cookie-banner-card {
        padding: 16px 16px 14px;
        max-height: 48vh;
        overflow-y: auto;
    }

    .cookie-banner-header {
        margin-bottom: 12px;
    }

    .cookie-icon-wrap {
        margin-bottom: 6px;
    }

    .cookie-icon-wrap svg {
        width: 32px;
        height: 32px;
    }

    .cookie-banner-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .cookie-banner-desc {
        font-size: 12.5px;
        line-height: 1.4;
    }

    .cookie-banner-actions {
        flex-direction: row;
        gap: 6px;
        margin-bottom: 10px;
        margin-top: 10px;
    }

    .cookie-btn {
        font-size: 11.5px;
        padding: 8px 6px;
    }

    /* Hide redundant expanded descriptions on mobile to keep sheet under 40-48% */
    .cookie-banner-details {
        display: none;
    }
}
