/* Cookie Consent Banner — generated by PureDevTools */
#cookie-consent-banner {
    background-color: var(--mt-deepblue);
    color: white;
    border: 1px solid white;
    border-radius: var(--bs-border-radius);
    position: fixed;
    bottom: .5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    max-width: calc(100% - 1rem);
    margin: 0 auto;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    font-size: 1rem;
    line-height: 1.5;
    display: none;
}

#cookie-consent-banner.ccb-visible {
    display: block;
}

.ccb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ccb-text {
    flex: 1;
    min-width: 200px;
}

.ccb-text a {
    color: #4caf50;
    text-decoration: underline;
}

.ccb-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Preferences modal */
#ccb-customize-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

#ccb-customize-modal.ccb-visible {
    display: flex;
}

.ccb-modal-inner {
    background-color: var(--mt-deepblue);
    color: #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.ccb-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.ccb-category {
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.ccb-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ccb-category-name {
    font-weight: 600;
    font-size: 1rem;
}

.ccb-category-desc {
    font-size: .75rem;
    opacity: 0.75;
    margin: 0;
}

.ccb-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.ccb-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ccb-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(128, 128, 128, 0.4);
    border-radius: 22px;
    transition: 0.3s;
}

.ccb-toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.ccb-toggle input:checked+.ccb-toggle-slider {
    background-color: var(--cts-teal);
}

.ccb-toggle input:checked+.ccb-toggle-slider::before {
    transform: translateX(18px);
}

.ccb-toggle input:disabled+.ccb-toggle-slider {
    cursor: not-allowed;
    opacity: 0.6;
}

.ccb-modal-footer {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}