/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--grey-800);
    color: rgba(255, 255, 255, .85);
    padding: var(--space-md) var(--gutter);
    transform: translateY(100%);
    transition: transform .4s var(--ease-out);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
    line-height: 1.7;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--green-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
    color: var(--white);
}

.cookie-banner-actions {
    display: flex;
    gap: .75rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .8em 1.8em;
    min-height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--fast);
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--green);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, .7);
    border: 1.5px solid rgba(255, 255, 255, .2);
}

.cookie-btn-settings:hover {
    border-color: rgba(255, 255, 255, .5);
    color: var(--white);
}

.cookie-btn-reject {
    background: transparent;
    color: rgba(255, 255, 255, .85);
    border: 1.5px solid rgba(255, 255, 255, .45);
}

.cookie-btn-reject:hover {
    border-color: var(--white);
    color: var(--white);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.cookie-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--space-lg);
    box-shadow: var(--shadow-xl);
}

.cookie-modal h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--grey-800);
    margin-bottom: var(--space-sm);
}

.cookie-modal > p {
    font-size: .85rem;
    color: var(--grey-500);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.cookie-category {
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--grey-100);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-category-info h4 {
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: .2rem;
}

.cookie-category-info p {
    font-size: .78rem;
    color: var(--grey-400);
    line-height: 1.6;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--grey-200);
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--fast);
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform var(--fast);
    box-shadow: var(--shadow-sm);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--green);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: .6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--grey-100);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-modal {
        padding: var(--space-md);
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
