/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-consent__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.cookie-consent__dialog {
    position: relative;
    max-width: 480px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    max-height: 85vh;
    overflow-y: auto;
}

.cookie-consent__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-consent__title {
    font-size: 20px;
    font-weight: 700;
    color: #1e414e;
    margin: 0;
}

.cookie-consent__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    transition: color 0.2s;
    border-radius: 6px;
}

.cookie-consent__close:hover {
    color: #1e414e;
    background: #f3f4f6;
}

.cookie-consent__body {
    padding: 20px;
}

.cookie-consent__intro {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 14px;
}

.cookie-consent__categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-consent__category {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #f9fafb;
}

.cookie-consent__category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.cookie-consent__category-info {
    flex: 1;
}

.cookie-consent__category-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e414e;
    margin: 0 0 6px;
}

.cookie-consent__category-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent__category-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.cookie-consent__category-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-consent__category-details li {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}

/* Toggle Switch */
.cookie-consent__toggle {
    display: flex;
    align-items: center;
}

.cookie-consent__toggle input[type="checkbox"] {
    display: none;
}

.cookie-consent__toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.cookie-consent__toggle--disabled label {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-consent__toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    transition: background 0.2s;
}

.cookie-consent__toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-consent__toggle input:checked + label .cookie-consent__toggle-switch {
    background: #a1c636;
}

.cookie-consent__toggle input:checked + label .cookie-consent__toggle-switch::before {
    transform: translateX(24px);
}

.cookie-consent__toggle-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Footer */
.cookie-consent__footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-consent__btn--primary {
    background: #a1c636;
    color: #fff;
}

.cookie-consent__btn--primary:hover {
    background: #8fb32d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(161, 198, 54, 0.3);
}

.cookie-consent__btn--secondary {
    background: #fff;
    color: #1e414e;
    border: 1px solid #d1d5db;
}

.cookie-consent__btn--secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.cookie-consent__btn--tertiary {
    background: #1e414e;
    color: #fff;
}

.cookie-consent__btn--tertiary:hover {
    background: #163340;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 65, 78, 0.3);
}

.cookie-consent__links {
    display: flex;
    gap: 16px;
    padding: 0 20px 16px;
    justify-content: center;
}

.cookie-consent__link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-consent__link:hover {
    color: #1e414e;
    text-decoration: underline;
}

/* Floating Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: #1e414e;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-btn:hover {
    background: #a1c636;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(161, 198, 54, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .cookie-consent {
        padding: 0;
        align-items: flex-end;
    }

    .cookie-consent__dialog {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

    .cookie-consent__footer {
        flex-direction: column;
    }

    .cookie-consent__btn {
        width: 100%;
        min-width: auto;
    }

    .cookie-settings-btn {
        bottom: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .cookie-consent__dialog {
        background: #1f2937;
    }

    .cookie-consent__title {
        color: #f9fafb;
    }

    .cookie-consent__intro,
    .cookie-consent__category-desc,
    .cookie-consent__category-details li {
        color: #d1d5db;
    }

    .cookie-consent__category {
        background: #111827;
        border-color: #374151;
    }

    .cookie-consent__category-title {
        color: #f9fafb;
    }

    .cookie-consent__header,
    .cookie-consent__footer,
    .cookie-consent__category-details {
        border-color: #374151;
    }

    .cookie-consent__btn--secondary {
        background: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }

    .cookie-consent__btn--secondary:hover {
        background: #4b5563;
    }
}
