.cookie-banner {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100px) !important;
    width: calc(100% - 40px) !important;
    max-width: 850px !important;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 9999 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.cookie-content {
    flex: 1;
    padding-right: 30px;
}

.cookie-content h4 {
    margin: 0 0 8px 0;
    font-weight: 800;
    color: #1e293b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie {
    border-radius: 3px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-cookie-accept {
    background: #2563eb;
    color: white;
}

.btn-cookie-accept:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-cookie-custom {
    background: rgba(226, 232, 240, 0.5);
    color: #475569;
}

.btn-cookie-custom:hover {
    background: rgba(203, 213, 225, 0.8);
}

/* Cookie Settings Modal */
#cookieSettingsModal .modal-content {
    border-radius: 3px;
    border: none;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

#cookieSettingsModal .modal-header {
    padding: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#cookieSettingsModal .modal-body {
    padding: 30px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    background: #f8fafc;
    border-radius: 3px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    transition: 0.2s;
}

.cookie-option:hover {
    border-color: #e2e8f0;
    background: #fff;
}

.cookie-option-info h6 {
    margin: 0 0 5px 0;
    font-weight: 700;
    color: #1e293b;
}

.cookie-option-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Custom Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    margin-left: 15px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 3px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 3px;
}

input:checked+.cookie-slider {
    background-color: #2563eb;
}

input:checked+.cookie-slider:before {
    transform: translateX(24px);
}

input:disabled+.cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column !important;
        text-align: center !important;
        bottom: 20px !important;
        padding: 20px !important;
        width: calc(100% - 20px) !important;
    }

    .cookie-content {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .cookie-content h4 {
        justify-content: center;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
    }
}

/* Push cookie banner up when Live Editor is present */
body:has(.admin-live-editor) .cookie-banner {
    bottom: 120px !important;
}