/* Catalink cookie consent banner — self-hosted replacement for Clickio. */

#cl-consent-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 45, 0.55);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#cl-consent-modal {
    background: #ffffff;
    color: #1f2937;
    max-width: 560px;
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 32px 36px;
    font-family: Arial, Helvetica, sans-serif;
}

#cl-consent-modal h2 {
    font-family: 'Oswald', Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    margin: 0 0 16px;
    text-align: left !important;
    line-height: 1.3 !important;
}

#cl-consent-modal p {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
    margin: 0 0 12px;
    text-align: left !important;
    text-transform: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

#cl-consent-modal a {
    color: #1476c9 !important;
    text-decoration: underline;
}

/* The banner also renders on the competitions pages, which are still on
   Bootstrap 3.3.4. BS5's reboot ships `[hidden]{display:none!important}`
   but BS3 does NOT, so the ID-selector `display:flex` rules below would
   otherwise beat the browser's default [hidden] handling and show both
   button rows at once. Force it explicitly. */
#cl-consent-modal [hidden] {
    display: none !important;
}

#cl-consent-options {
    margin: 16px 0 4px;
    border-top: 1px solid #e5e7eb;
}

.cl-consent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cl-consent-row div {
    font-size: 13px !important;
    color: #4b5563 !important;
    text-align: left !important;
}

.cl-consent-row span {
    color: #4b5563 !important;
    font-size: 13px !important;
}

.cl-consent-row strong {
    display: block;
    font-size: 14px !important;
    color: #1a1a2e !important;
    margin-bottom: 2px;
}

.cl-switch {
    position: relative !important;
    display: inline-block !important;
    width: 40px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
}

.cl-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.cl-switch span {
    position: absolute !important;
    inset: 0 !important;
    background: #cbd5e1;
    border-radius: 999px;
    transition: 0.15s;
    cursor: pointer;
    display: block !important;
}

.cl-switch span::before {
    content: "";
    position: absolute !important;
    height: 16px !important;
    width: 16px !important;
    left: 3px !important;
    top: 3px !important;
    background: #fff;
    border-radius: 50%;
    transition: 0.15s;
}

.cl-switch input:checked + span {
    background: #1476c9;
}

.cl-switch input:checked + span::before {
    transform: translateX(18px);
}

.cl-switch-locked span {
    cursor: default;
    opacity: 0.7;
}

#cl-consent-buttons,
#cl-consent-save-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cl-btn {
    flex: 1 1 auto;
    min-width: 140px;
    font-family: 'Oswald', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px;
    text-transform: none !important;
    padding: 11px 16px !important;
    border-radius: 6px !important;
    cursor: pointer;
    border: 1.5px solid #1476c9 !important;
    background: #ffffff !important;
    color: #1476c9 !important;
    line-height: 1.4 !important;
    width: auto !important;
    height: auto !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.cl-btn:hover {
    background: #f0f7ff !important;
}

.cl-btn-solid {
    background: #1476c9 !important;
    color: #ffffff !important;
}

.cl-btn-solid:hover {
    background: #0f5da3 !important;
}

#cl-consent-save-row .cl-btn {
    flex: 1 1 100%;
}

@media (max-width: 480px) {
    #cl-consent-modal {
        padding: 24px 22px;
    }
    .cl-btn {
        flex: 1 1 100%;
    }
}
