/**
 * Cookie Consent Banner Styles (DSGVO)
 *
 * @package BSS_Theme
 */

/* Overlay */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

/* Banner */
.cookie-consent-banner {
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: cookieSlideUp 0.3s ease-out;
}

@keyframes cookieSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    padding: 1.75rem 2rem 2rem;
}

.cookie-content h3 {
    font-family: 'Sen', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}

.cookie-content > p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

/* Cookie Categories */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cookie-category {
    background: #f8f4f1;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}

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

.cookie-category-name {
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a2e;
}

.cookie-category-desc {
    font-size: 0.8rem;
    color: #888;
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

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

.cookie-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #c85a7c;
}

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

.cookie-toggle input:disabled + .cookie-slider {
    background-color: #c85a7c;
    opacity: 0.6;
    cursor: not-allowed;
}

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

/* Buttons */
.cookie-buttons {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Sen', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cookie-btn-reject {
    background: #f0f0f0;
    color: #555;
}

.cookie-btn-reject:hover {
    background: #e0e0e0;
}

.cookie-btn-customize {
    background: #f8f4f1;
    color: #1a1a2e;
    border: 1px solid #ddd;
}

.cookie-btn-customize:hover {
    background: #f0ebe7;
}

.cookie-btn-accept {
    background: #c85a7c;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #b44d6d;
}

/* Responsive */
@media (max-width: 480px) {
    .cookie-consent-overlay {
        padding: 0;
    }

    .cookie-consent-banner {
        border-radius: 1rem 1rem 0 0;
    }

    .cookie-content {
        padding: 1.25rem 1.25rem 1.5rem;
    }

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

    .cookie-btn {
        min-width: auto;
    }
}
