/* CMP (Consent Management Platform) Styles */
.cmp-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: none;
    /* Hidden by default, shown via JS */
}

.cmp-banner.is-visible {
    display: block;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cmp-container {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cmp-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cmp-content {
    flex: 1;
}

.cmp-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.cmp-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

.cmp-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cmp-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.cmp-btn-primary {
    background: #4f46e5;
    color: white;
}

.cmp-btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.cmp-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.cmp-btn-secondary:hover {
    background: #e2e8f0;
}

/* Modal layers */
.cmp-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: none;
}

.cmp-modal.is-visible {
    display: flex;
}

.cmp-modal-content {
    background: white;
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cmp-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cmp-modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.cmp-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.category-item {
    margin-bottom: 1.5rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.category-title {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #1e293b;
}

.category-desc {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 2.5rem;
    height: 1.25rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 1.25rem;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1rem;
    width: 1rem;
    left: 0.125rem;
    bottom: 0.125rem;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #4f46e5;
}

input:checked+.slider:before {
    transform: translateX(1.25rem);
}

input:disabled+.slider {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lang-btn {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.5rem;
    border-radius: 0.4rem;
    background: #f8fafc;
    color: #94a3b8;
    cursor: pointer;
}

.lang-btn.active {
    background: #eef2ff;
    color: #4f46e5;
}