:root {
    --cc-primary: #2ead62;
    --cc-primary-dark: #248b4e;
    --cc-bg: #ffffff;
    --cc-text: #2c3e50;
    --cc-text-muted: #6c757d;
    --cc-border: #e9ecef;
    --cc-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --cc-radius: 12px;
}

/* Cookie Banner Wrapper */
#cookie-banner-wrapper {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 1060;
    pointer-events: none;
    display: none;
}

#cookie-banner-wrapper.show {
    display: block;
    animation: cc-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--cc-bg);
    padding: 24px 32px;
    border-radius: var(--cc-radius);
    box-shadow: var(--cc-shadow);
    pointer-events: all;
    border: 1px solid var(--cc-border);
}

.cookie-banner .row {
    align-items: center;
}

.cookie-banner-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--cc-text);
}

.cookie-banner-text p {
    font-size: 0.95rem;
    color: var(--cc-text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--cc-primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Buttons */
.cc-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.cc-btn-primary {
    background: var(--cc-primary);
    color: white;
}

.cc-btn-primary:hover {
    background: var(--cc-primary-dark);
}

.cc-btn-secondary {
    background: #f8f9fa;
    color: var(--cc-text);
    border-color: var(--cc-border);
}

.cc-btn-secondary:hover {
    background: #e9ecef;
}

.cc-btn-outline {
    background: transparent;
    color: var(--cc-text);
    border-color: var(--cc-border);
}

.cc-btn-outline:hover {
    background: #f8f9fa;
}

/* Modal Styling */
#cc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1070;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

#cc-modal.show {
    display: flex;
    animation: cc-fade-in 0.3s ease;
}

.cc-modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cc-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--cc-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.cc-close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--cc-text-muted);
}

.cc-modal-body {
    padding: 24px 32px;
    overflow-y: auto;
}

.cc-category {
    padding: 16px 0;
    border-bottom: 1px solid var(--cc-border);
}

.cc-category:last-child {
    border-bottom: none;
}

.cc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cc-category-title {
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-category-desc {
    font-size: 0.85rem;
    color: var(--cc-text-muted);
    line-height: 1.5;
}

.cc-modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--cc-border);
    display: flex;
    gap: 12px;
    background: #f8f9fa;
}

/* Switch Styles */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.cc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.cc-slider {
    background-color: var(--cc-primary);
}

input:checked+.cc-slider:before {
    transform: translateX(20px);
}

input:disabled+.cc-slider {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Floating Settings Button */
#cc-settings-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--cc-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1050;
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
}

#cc-settings-btn.show {
    visibility: visible;
    opacity: 1;
}

#cc-settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#cc-settings-btn i {
    font-size: 1.25rem;
    color: var(--cc-primary);
}

/* Animations */
@keyframes cc-slide-up {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cc-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .cookie-banner-buttons {
        margin-top: 16px;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    #cookie-banner-wrapper {
        bottom: 0;
        left: 0;
        right: 0;
    }

    .cookie-banner {
        border-radius: 16px 16px 0 0;
        padding: 20px;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cc-btn {
        width: 100%;
        text-align: center;
    }

    .cc-modal-footer {
        flex-direction: column;
    }
}