.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-bento);
    padding: 24px;
    box-shadow: 0 -4px 24px rgba(30, 20, 40, 0.08);
}

.cookie-banner-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cookie-banner-text a {
    color: var(--plum);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    flex: 1 1 auto;
    min-width: 120px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
}

.cookie-btn-accept {
    background: var(--mint);
    color: var(--ink);
}

.cookie-btn-accept:hover {
    background: var(--mint-hover);
}

.cookie-btn-reject {
    background: var(--surface);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.cookie-btn-reject:hover {
    border-color: var(--plum);
}

.cookie-btn-settings {
    background: var(--surface);
    color: var(--plum);
    border: 1.5px solid var(--plum);
}

.cookie-btn-settings:hover {
    background: rgba(107, 78, 155, 0.06);
}

.cookie-settings-panel {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cookie-settings-panel.is-open {
    display: block;
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cookie-category-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-toggle {
    flex-shrink: 0;
    position: relative;
    width: 48px;
    height: 28px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: var(--surface);
    border-radius: 50%;
    transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--mint);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-save {
    margin-top: 16px;
    width: 100%;
}

@media (min-width: 640px) {
    .cookie-banner-actions {
        flex-wrap: nowrap;
    }

    .cookie-btn {
        flex: 1;
    }
}
