/* Cookie Consent Banner - Premium Version */
:root {
    --cb-primary: #4f46e5;
    --cb-primary-dark: #4338ca;
    --cb-bg: rgba(255, 255, 255, 0.95);
    --cb-text: #1f2937;
    --cb-text-muted: #6b7280;
    --cb-radius: 1rem;
    --cb-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--cb-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 10000;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--cb-radius);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cookie-banner__content {
    flex: 1;
    min-width: 280px;
}

.cookie-banner__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cb-text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.cookie-banner__text {
    font-size: 0.9375rem;
    color: var(--cb-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-banner__text a {
    color: var(--cb-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(79, 70, 229, 0.1);
    transition: border-color 0.2s;
}

.cookie-banner__text a:hover {
    border-color: var(--cb-primary);
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-banner__btn {
    padding: 12px 24px;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    font-family: 'Inter', sans-serif;
}

.cookie-banner__btn--accept {
    background: var(--cb-primary);
    color: #fff;
}

.cookie-banner__btn--accept:hover {
    background: var(--cb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.cookie-banner__btn--reject {
    background: #f3f4f6;
    color: #4b5563;
}

.cookie-banner__btn--reject:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.cookie-banner__btn--settings {
    background: transparent;
    color: var(--cb-text-muted);
    font-size: 0.875rem;
    padding: 10px 16px;
}

.cookie-banner__btn--settings:hover {
    color: var(--cb-primary);
    text-decoration: underline;
}

/* Cookie Settings Modal */
.cookie-settings {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cookie-settings.show {
    display: flex;
}

.cookie-settings__modal {
    background: #fff;
    border-radius: 1.5rem;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings__header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cb-text);
    letter-spacing: -0.02em;
}

.cookie-settings__close {
    background: #f3f4f6;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cookie-settings__close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

.cookie-settings__body {
    padding: 32px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--cb-text);
}

.cookie-category__toggle {
    position: relative;
    width: 48px;
    height: 26px;
}

.cookie-category__toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-category__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 34px;
}

.cookie-category__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-category__toggle input:checked+.cookie-category__slider {
    background: var(--cb-primary);
}

.cookie-category__toggle input:checked+.cookie-category__slider:before {
    transform: translateX(22px);
}

.cookie-category__toggle input:disabled+.cookie-category__slider {
    background-color: #d1d5db;
    opacity: 0.8;
}

.cookie-category__desc {
    font-size: 0.875rem;
    color: var(--cb-text-muted);
    line-height: 1.6;
}

.cookie-category__required {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--cb-primary);
    font-weight: 600;
    text-transform: uppercase;
}

.cookie-settings__footer {
    padding: 24px 32px 32px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.cookie-settings__btn {
    padding: 12px 24px;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-settings__btn--save {
    background: var(--cb-primary);
    color: #fff;
    flex: 1;
    max-width: 200px;
}

.cookie-settings__btn--save:hover {
    background: var(--cb-primary-dark);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.cookie-settings__btn--cancel {
    background: #fff;
    color: var(--cb-text-muted);
    border: 1px solid #e5e7eb;
}

.cookie-settings__btn--cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 1.5rem 1.5rem 0 0;
        padding: 32px 24px;
    }

    .cookie-banner__container {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .cookie-banner__actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner__btn {
        width: 100%;
        padding: 14px;
    }
}