/*
 * Cookie consent banner (EXT:dp_cookieconsent, theme "classic") in the 4msports look:
 * white bar with the blue site line, content aligned to the 990px page container,
 * all three choices as real buttons of the same size (rejecting must be as easy as accepting).
 * Loaded after dp_cookieconsent.css (page.includeCSS.cookieconsent in setup.typoscript).
 */

body.dp--cookie-consent .cc-window.cc-window {
    background: #fff !important;
    color: #333 !important;
    border-top: 3px solid #5fbeed;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    padding: 18px 16px;
}

body.dp--cookie-consent .cc-window .cc-body {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 990px;
    width: 100%;
    margin: 0 auto;
}

body.dp--cookie-consent .cc-window .cc-message {
    flex: 1 1 auto;
    margin: 0;
    color: #333;
}

body.dp--cookie-consent .cc-window .cc-link {
    display: inline;
    padding: 0;
    color: #5fbeed !important;
    opacity: 1;
    text-decoration: underline;
}

body.dp--cookie-consent .cc-window .cc-link:hover {
    color: #f18800 !important;
}

/* category checkboxes: one compact row under the text */
body.dp--cookie-consent .cc-window .dp--cookie-check {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 22px;
    margin-top: 10px;
    padding: 0;
    border: 0;
}

body.dp--cookie-consent .cc-window .dp--cookie-check label {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    color: #333 !important;
    font-size: 14px;
    font-weight: normal;
}

body.dp--cookie-consent .cc-window .dp--check-box {
    accent-color: #5fbeed;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* buttons */
body.dp--cookie-consent .cc-window .cc-compliance {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 190px;
    margin: 0;
}

body.dp--cookie-consent .cc-window .cc-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 14px;
    border: 2px solid #5fbeed !important;
    border-radius: 0;
    background: #fff !important;
    color: #5fbeed !important;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

body.dp--cookie-consent .cc-window .cc-btn:hover,
body.dp--cookie-consent .cc-window .cc-btn:focus {
    background: #5fbeed !important;
    color: #fff !important;
}

body.dp--cookie-consent .cc-window .cc-btn.cc-allow-all {
    border-color: #f18800 !important;
    background: #f18800 !important;
    color: #fff !important;
}

body.dp--cookie-consent .cc-window .cc-btn.cc-allow-all:hover,
body.dp--cookie-consent .cc-window .cc-btn.cc-allow-all:focus {
    border-color: #d77900 !important;
    background: #d77900 !important;
}

body.dp--cookie-consent .cc-window .cc-btn:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

body.dp--cookie-consent .cc-window .powered-by {
    display: none;
}

/* re-open button (fingerprint icon) */
body.dp--cookie-consent .dp--revoke {
    background: #5fbeed !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    body.dp--cookie-consent .cc-window.cc-window {
        padding: 14px 16px;
        max-height: 80vh;
        overflow-y: auto;
    }

    body.dp--cookie-consent .cc-window .cc-body {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    body.dp--cookie-consent .cc-window .cc-compliance {
        width: 100%;
    }
}
