/**
 * Cookie consent — Strong / Panda brand + RTL polish
 * Do NOT force visibility — CookieConsent uses inline visibility:hidden
 * and body.show--consent to reveal the modal.
 */
#cc--main #cm {
    max-width: min(560px, calc(100vw - 24px)) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 69, 0, 0.12) !important;
}

#cc--main #cm .c-bn {
    border-radius: 999px !important;
    font-weight: 700 !important;
    min-height: 40px;
    padding: 0.55rem 1.1rem !important;
}

#cc--main #cm .c-bns .c-bn:first-child,
#cc--main #cm button[data-role="all"] {
    background: linear-gradient(90deg, #FF4500, #E63946) !important;
    border: none !important;
    color: #fff !important;
}

#cc--main #cm .cc-link {
    color: #FF4500 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

html[dir="rtl"] #cc--main #cm,
html[lang^="ar"] #cc--main #cm {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] #cc--main #cm .c-bns,
html[lang^="ar"] #cc--main #cm .c-bns {
    flex-direction: row-reverse;
}

/* Hide ghost dialog when library marks it hidden / not shown */
#cc--main #cm[aria-hidden="true"],
body:not(.show--consent) #cc--main #cm {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

body.show--consent #cc--main #cm[aria-hidden="false"] {
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

body.login-identity-page.auth-enterprise #cc--main #cm {
    background: #18181c !important;
    color: #f1f5f9 !important;
}

body.login-identity-page.auth-enterprise #cc--main #cm #c-ttl,
body.login-identity-page.auth-enterprise #cc--main #cm #c-txt {
    color: #f1f5f9 !important;
}

body.login-identity-page.auth-enterprise #cc--main #cm .c-bn.c-bn-sv,
body.login-identity-page.auth-enterprise #cc--main #cm button[data-role="necessary"] {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

body.login-identity-page.auth-enterprise #cc--main {
    pointer-events: none;
}

body.login-identity-page.auth-enterprise.show--consent #cc--main #cm {
    pointer-events: auto;
    z-index: 2147483647;
    margin-bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
    padding: 0.85rem 1rem !important;
}

body.login-identity-page.auth-enterprise #cc--main #cm #c-ttl {
    font-size: 0.95rem !important;
    margin-bottom: 0.25rem !important;
}

body.login-identity-page.auth-enterprise #cc--main #cm #c-txt {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    max-height: 2.7em;
    overflow: hidden;
}

body.login-identity-page.auth-enterprise #cc--main #cm .c-bns {
    margin-top: 0.55rem !important;
    gap: 0.4rem !important;
}

body.login-identity-page.auth-enterprise #cc--main #cm .c-bn {
    min-height: 36px !important;
    padding: 0.4rem 0.9rem !important;
    font-size: 0.82rem !important;
}

/* Auth page padding only while consent is actually shown */
body.login-identity-page.auth-enterprise.show--consent .custom-login {
    padding-bottom: max(10rem, calc(env(safe-area-inset-bottom, 0px) + 8rem));
}
