/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.cookie-banner__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 171, 0.1) 0%, rgba(0, 185, 242, 0.1) 100%);
    border-radius: 1rem;
    color: #0066ab;
    font-size: 1.5rem;
}

.cookie-banner__text {
    flex: 1;
}

.cookie-banner__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.cookie-banner__description {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__link {
    color: #0066ab;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner__link:hover {
    color: #005da3;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 300ms ease;
    white-space: nowrap;
}

.cookie-banner__btn--accept {
    background: #0066ab;
    color: #ffffff;
}

.cookie-banner__btn--accept:hover {
    background: #005da3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 171, 0.25);
}

.cookie-banner__btn--essential {
    background: transparent;
    color: #666666;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.cookie-banner__btn--essential:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #333333;
}

.cookie-banner__btn--settings {
    background: transparent;
    color: #666666;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner__btn--settings:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #0066ab;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-modal__container {
    position: relative;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-modal__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.cookie-modal__close {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    color: #666666;
    cursor: pointer;
    transition: all 150ms ease;
    font-size: 1.25rem;
}

.cookie-modal__close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

.cookie-modal__body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 1.5rem;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    transition: all 300ms ease;
}

.cookie-category__header:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 102, 171, 0.1);
}

.cookie-category__info {
    flex: 1;
}

.cookie-category__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category__title i {
    color: #0066ab;
    font-size: 0.875rem;
}

.cookie-category__description {
    font-size: 0.875rem;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle label {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cccccc;
    border-radius: 28px;
    transition: background-color 300ms ease;
}

.cookie-toggle label::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    top: 4px;
    background: white;
    border-radius: 50%;
    transition: transform 300ms ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + label {
    background: #0066ab;
}

.cookie-toggle input:checked + label::before {
    transform: translateX(20px);
}

.cookie-toggle--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle--disabled label {
    cursor: not-allowed;
    background: #0066ab;
}

.cookie-modal__footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-modal__btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 300ms ease;
}

.cookie-modal__btn--save {
    background: transparent;
    color: #666666;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.cookie-modal__btn--save:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #333333;
}

.cookie-modal__btn--accept-all {
    background: #0066ab;
    color: #ffffff;
}

.cookie-modal__btn--accept-all:hover {
    background: #005da3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 171, 0.25);
}

/* Mobile Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner__container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
        margin: 0 auto;
    }

    .cookie-banner__actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-banner__btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal__container {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .cookie-modal__header,
    .cookie-modal__body,
    .cookie-modal__footer {
        padding: 1.25rem 1rem;
    }

    .cookie-modal__footer {
        flex-direction: column;
    }
}
