
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    padding: 1rem;
}

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

    .cookie-consent-banner.hide {
        transform: translateY(100%);
    }

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--primary-color, #007bff);
    color: white;
}

    .cookie-btn-primary:hover {
        background: var(--primary-color-hover, #0056b3);
    }

.cookie-btn-secondary {
    background: transparent;
    color: var(--primary-color, #007bff);
    border: 1px solid var(--primary-color, #007bff);
}

    .cookie-btn-secondary:hover {
        background: var(--primary-color, #007bff);
        color: white;
    }

.cookie-btn-minimal {
    background: transparent;
    color: #666;
    text-decoration: underline;
}

    .cookie-btn-minimal:hover {
        color: #333;
    }

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .cookie-settings-modal.show {
        opacity: 1;
    }

    .cookie-settings-modal.hide {
        opacity: 0;
    }

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .cookie-modal-header h2 {
        margin: 0;
        font-size: 1.4rem;
        color: #333;
    }

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

    .cookie-modal-close:hover {
        background: #f5f5f5;
        color: #333;
    }

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

    .cookie-category-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
    }

.cookie-always-on {
    background: #e8f5e8;
    color: #2e7d2e;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background: white;
        border-radius: 50%;
        transition: 0.3s;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

.cookie-toggle input:checked + .toggle-slider {
    background: var(--primary-color, #007bff);
}

    .cookie-toggle input:checked + .toggle-slider:before {
        transform: translateX(26px);
    }

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        padding: 0.75rem;
        text-align: center;
    }

    .cookie-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cookie-toggle {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 0.75rem;
    }

    .cookie-banner-text h3 {
        font-size: 1rem;
    }

    .cookie-banner-text p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        font-size: 0.85rem;
        padding: 0.625rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-settings-modal,
    .cookie-modal-content,
    .toggle-slider,
    .toggle-slider:before,
    .cookie-btn {
        transition: none;
    }
}

.cookie-btn:focus,
.cookie-modal-close:focus,
.cookie-toggle:focus-within .toggle-slider {
    outline: 2px solid var(--primary-color, #007bff);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .cookie-consent-banner {
        border-top: 2px solid #000;
        background: #fff;
    }

    .cookie-btn-primary {
        border: 2px solid #000;
    }

    .cookie-modal-content {
        border: 2px solid #000;
    }
}
