/* Cookie Consent Banner */
:root {
    --primary-color: #003DA5;
    --primary-dark: #2563eb;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

#scc-cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 340px;
    max-width: calc(100vw - 48px);
    z-index: 99999;
    background: #ffffff;
    color: #000000;
    padding: 24px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    display: none;
    /* Hidden by default, shown by JS */
    font-family: var(--font-sans);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    animation: scc-slide-up 0.5s ease-out forwards;
}

@keyframes scc-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.scc-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scc-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scc-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333333;
}

.scc-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.scc-btn {
    width: 100%;
    padding: 12px 0;
    border-radius: var(--border-radius-md);
    /* Square borders */
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.scc-btn-accept {
    background: var(--primary-color);
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

.scc-btn-accept:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

.scc-btn-config {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.scc-btn-config:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

/* Modal */
#scc-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#scc-cookie-modal.active {
    opacity: 1;
    pointer-events: all;
}

.scc-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    position: relative;
    border: 1px solid var(--palette-border, #e2e8f0);
    color: #1e293b;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.scc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 16px;
}

.scc-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.scc-close {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.scc-close:hover {
    opacity: 0.7;
}

.scc-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--primary-color);
}

.scc-option:last-child {
    border-bottom: none;
}

.scc-option-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
}

.scc-option-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #555555;
}

/* Switch */
.scc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.scc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.scc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    transition: .2s;
    border-radius: 200px;
    /* Square switch */
    border: 2px solid var(--primary-color);
}

.scc-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 4px;
    bottom: 4px;
    background-color: var(--primary-color);
    transition: .2s;
    border-radius: 50px;
    /* Square knob */
}

input:checked+.scc-slider {
    background-color: var(--primary-color);
}

input:checked+.scc-slider:before {
    transform: translateX(24px);
    background-color: white;
}

input:disabled+.scc-slider {
    border-color: #999;
    background-color: #f0f0f0;
    cursor: not-allowed;
}

input:disabled+.scc-slider:before {
    background-color: #999;
}

.scc-modal-footer {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 16px;
    border-top: 2px solid #f0f0f0;
}

@media (max-width: 480px) {
    #scc-cookie-banner {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border: none;
        border-top: 2px solid black;
    }
}