/* FE1006_COOKIE_DARK_VISIBILITY
   Dark-mode contrast correction only.
   Cookie consent markup, persistence and JS behaviour are untouched. */

html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner {
    background: #172122 !important;
    background-image: none !important;
    color: #F4FFFF !important;
    border-top: 1px solid #365052 !important;
    box-shadow: 0 -14px 36px rgba(0,0,0,.34) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Override every inherited/muted text path, including the bare DIV in
   .gdpr-cookie-left and STRONG in .gdpr-cookie-middle. */
html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
:is(.gdpr-cookie-left,.gdpr-cookie-middle,.gdpr-cookie-right) {
    color: #D5E3E4 !important;
}

html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
.gdpr-cookie-left > div {
    color: #C8D7D8 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
:is(h2,h3,h4,strong) {
    color: #F5FFFF !important;
    -webkit-text-fill-color: #F5FFFF !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
.gdpr-cookie-middle p {
    color: #ECF6F6 !important;
    -webkit-text-fill-color: #ECF6F6 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
.gdpr-cookie-middle {
    border-color: #365052 !important;
}

/* Inline style on the policy link is deliberately overridden with !important. */
html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
.gdpr-cookie-middle a,
html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
.gdpr-cookie-settings-link {
    color: #72E4E0 !important;
    -webkit-text-fill-color: #72E4E0 !important;
    text-decoration-color: rgba(114,228,224,.48) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
.gdpr-cookie-middle a:hover,
html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
.gdpr-cookie-middle a:focus-visible,
html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
.gdpr-cookie-settings-link:hover,
html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
.gdpr-cookie-settings-link:focus-visible {
    color: #A5F5F2 !important;
    -webkit-text-fill-color: #A5F5F2 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

/* Primary action must remain visually primary in dark mode. */
html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
#acceptAll.gdpr-btn.gdpr-btn-accept {
    background: #0B9CA0 !important;
    border: 1px solid #0B9CA0 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
#acceptAll.gdpr-btn.gdpr-btn-accept:hover,
html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
#acceptAll.gdpr-btn.gdpr-btn-accept:focus-visible {
    background: #087C78 !important;
    border-color: #48C8C5 !important;
    color: #FFFFFF !important;
}

/* Secondary action remains distinct instead of looking identical to Accept. */
html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
#rejectAll.gdpr-btn.gdpr-btn-reject {
    background: #222D2E !important;
    border: 1px solid #536A6C !important;
    color: #F2FAFA !important;
    -webkit-text-fill-color: #F2FAFA !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
#rejectAll.gdpr-btn.gdpr-btn-reject:hover,
html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
#rejectAll.gdpr-btn.gdpr-btn-reject:focus-visible {
    background: #2A3A3B !important;
    border-color: #6D8A8C !important;
    color: #FFFFFF !important;
}

/* Strong, visible keyboard focus for every banner action. */
html[data-theme="dark"] body.site-body #cookieBanner.gdpr-cookie-banner
:is(button,a):focus-visible {
    outline: 3px solid rgba(114,228,224,.38) !important;
    outline-offset: 2px !important;
}

/* Keep the settings dialog visually consistent with the banner. */
html[data-theme="dark"] body.site-body
:is(.gdpr-cookie-modal,.gdpr-modal-card) {
    color: #F4FFFF !important;
}

html[data-theme="dark"] body.site-body
.gdpr-cookie-modal .gdpr-modal-card {
    background: #172122 !important;
    background-image: none !important;
    border: 1px solid #365052 !important;
    color: #F4FFFF !important;
    box-shadow: 0 20px 54px rgba(0,0,0,.42) !important;
}

html[data-theme="dark"] body.site-body
.gdpr-cookie-modal .gdpr-modal-card
:is(h2,h3,h4,strong,label,p,span,div) {
    color: #E4F0F0 !important;
    -webkit-text-fill-color: #E4F0F0 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.site-body
.gdpr-cookie-modal .gdpr-modal-card
:is(a,.gdpr-cookie-settings-link) {
    color: #72E4E0 !important;
    -webkit-text-fill-color: #72E4E0 !important;
}

html[data-theme="dark"] body.site-body
.gdpr-cookie-modal .gdpr-modal-card
.gdpr-btn-accept {
    background: #0B9CA0 !important;
    border-color: #0B9CA0 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

html[data-theme="dark"] body.site-body
.gdpr-cookie-modal .gdpr-modal-card
.gdpr-btn-reject {
    background: #222D2E !important;
    border-color: #536A6C !important;
    color: #F2FAFA !important;
    -webkit-text-fill-color: #F2FAFA !important;
}

/* Switches / controls in settings must not disappear against the card. */
html[data-theme="dark"] body.site-body
.gdpr-cookie-modal .gdpr-modal-card
:is(input,select,textarea) {
    background: #202B2C !important;
    border-color: #536A6C !important;
    color: #FFFFFF !important;
}

/* Do not affect light mode. */
