/* --- COOKIE MANAGER PLUGIN STYLES --- */

/* Banner Bottom Floating */
.cm-banner-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: #333;
    z-index: 99998;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    border-top: 1px solid #eaeaea;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cm-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.cm-banner-text {
    flex: 1 1 60%;
}

.cm-banner-text h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-color, #1a202c);
}

.cm-banner-text p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    color: #4a5568;
}

.cm-banner-text a {
    color: var(--accent-color, #3182ce);
    text-decoration: underline;
    font-weight: 500;
}

.cm-banner-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal Styling */
.cm-modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cm-modal-body hr {
    margin: 20px 0;
    border-top: 1px solid #f0f0f0;
}

.cm-category-item h6 {
    color: #2d3748;
}

.custom-switch .custom-control-label::before {
    height: 1.25rem;
    width: 2.25rem;
    border-radius: 2rem;
}
.custom-switch .custom-control-label::after {
    width: calc(1.25rem - 4px);
    height: calc(1.25rem - 4px);
    border-radius: 50%;
}
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--accent-color, #3182ce);
    border-color: var(--accent-color, #3182ce);
}
.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(1rem);
}

/* Dark Mode Support */
body.dark-mode .cm-banner-container {
    background-color: #1e293b;
    color: #f8fafc;
    border-top: 1px solid #334155;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
}

body.dark-mode .cm-banner-text h5 {
    color: #f8fafc;
}

body.dark-mode .cm-banner-text p {
    color: #cbd5e1;
}

body.dark-mode .cm-banner-text a {
    color: #60a5fa;
}

body.dark-mode .cm-modal-content {
    background-color: #1e293b;
    color: #f8fafc;
}

body.dark-mode .modal-header {
    border-bottom: 1px solid #334155;
}

body.dark-mode .modal-footer {
    border-top: 1px solid #334155;
}

body.dark-mode .close {
    color: #f8fafc;
}

body.dark-mode .cm-modal-body hr {
    border-top-color: #334155;
}

body.dark-mode .cm-category-item h6 {
    color: #f8fafc;
}

body.dark-mode .cm-category-info p {
    color: #94a3b8 !important;
}

body.dark-mode .custom-switch .custom-control-label::before {
    background-color: #475569;
    border-color: #475569;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cm-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cm-banner-actions {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .cm-banner-actions button {
        flex: 1 1 auto;
    }
}
