/*
 * Consent banner - bottom-left card, matched to the pre-auth screens.
 * Markup comes from cookies.cnf.js and is not modified; this file only restyles it.
 */

#mycookies #cookie_popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 380px;
    z-index: 9999;
    margin-bottom: 0 !important;
    font-family: hind_vadodara_regular, "Segoe UI", Calibri, Arial, sans-serif
}

#mycookies #cookie_popup.alert {
    background: #fff;
    border: 1px solid #E3E5F0;
    /* radius lives on the popup, not .cookie_container - the footer is a sibling of the
       container, so a radius on the container alone never clips the card */
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(18, 19, 26, .06), 0 18px 40px -16px rgba(18, 19, 26, .3);
    padding: 0 !important
}

#mycookies .cookie_container {
    position: relative;
    z-index: 200;
    border-radius: 0
}

/* The header carries only the close button - settings.title is never passed - so it reads as
   a brand band rather than a title bar: the same gradient as the sign-in panel (.rt-visual),
   sized to the button it holds. Positioned so the button anchors to the band, not the card. */
#mycookies .cookie_header {
    position: relative;
    height: 46px;
    padding: 0;
    background: linear-gradient(176deg, #14133F 0%, #181794 52%, #1512D9 100%);
    border-bottom: 0;
    color: #fff !important
}

#mycookies #cookie_popup .close {
    padding: 0 !important;
    top: 10px;
    right: 12px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 21px;
    font-weight: 400;
    text-shadow: none;
    color: rgba(255, 255, 255, .72) !important;
    opacity: 1
}

#mycookies .close:not(:disabled):not(.disabled):focus,
#mycookies .close:not(:disabled):not(.disabled):hover {
    color: #fff !important;
    opacity: 1
}

#mycookies #cookie_popup .cookie_body {
    padding: 20px 22px 0;
    color: #3F4656 !important;
    font-size: 14.5px;
    line-height: 1.6
}

#mycookies #cookie_popup-message h4 {
    font-family: hind_vadodara_semi_bold, hind_vadodara_medium, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
    color: #0E1424;
    margin: 0 0 6px
}

/* the message string ends in a trailing <br> that only adds dead space above the button */
#mycookies #cookie_popup-message br {
    display: none
}

#mycookies .cookie_footer {
    padding: 16px 22px 20px;
    background: #fff;
    /* the markup carries .text-right; the accept button sits on that edge */
    text-align: right !important
}

/* Targeted by id: .btn-user is also used by mfa, newaccount, sign_up and timezone_check.
   support_style.css sets .btn-user background/border/color with !important, so these have
   to match it - scoping to the id keeps the override off those other four views. */
#mycookies #cookie_popup-accept-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 38px;
    padding: 0 20px;
    border: 0 !important;
    border-radius: 9px;
    background-color: #1F2430 !important;
    color: #fff !important;
    font-family: hind_vadodara_medium, hind_vadodara_regular, "Segoe UI", sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    box-shadow: none;
    transition: background-color .15s ease
}

#mycookies #cookie_popup-accept-btn:hover,
#mycookies #cookie_popup-accept-btn:focus {
    background-color: #2B3140 !important;
    color: #fff !important
}

#mycookies #cookie_popup-accept-btn:focus-visible {
    outline: 3px solid rgba(26, 26, 209, .35);
    outline-offset: 2px
}

/* Tenant theme saved: follow the portal header colours, the same CSS variables the
   navbar reads. Guarded by the body class so the packaged dark button stands until
   a theme exists. */
.rt-themed #mycookies #cookie_popup-accept-btn {
    background-color: var(--navbar-color, #1F2430) !important;
    color: var(--navbar-text-color, #fff) !important
}

.rt-themed #mycookies #cookie_popup-accept-btn:hover,
.rt-themed #mycookies #cookie_popup-accept-btn:focus {
    background-color: var(--navbar-hover-dark, #2B3140) !important;
    color: var(--navbar-text-color, #fff) !important
}

/* The brand band keeps its gradient but builds it from the theme: the app already derives
   a lighter and a darker shade of the header colour, so the three stops come free. The
   close button switches to the theme text colour, which matters if a tenant picks a light
   header - white on white would vanish. */
.rt-themed #mycookies .cookie_header {
    background: linear-gradient(176deg, var(--navbar-hover-dark, #14133F) 0%, var(--navbar-color, #181794) 52%, var(--navbar-hover-light, #1512D9) 100%)
}

.rt-themed #mycookies #cookie_popup .close {
    color: var(--navbar-text-color, #fff) !important;
    opacity: .78
}

.rt-themed #mycookies .close:not(:disabled):not(.disabled):focus,
.rt-themed #mycookies .close:not(:disabled):not(.disabled):hover {
    color: var(--navbar-text-color, #fff) !important;
    opacity: 1
}

/* the small reopen bubble shown once the banner has been dismissed */
#mycookies #cookie_show {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99;
    background-color: #1F2430;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 24px
}

#mycookies .alert-dismissable .close,
.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    color: inherit;
    opacity: .8
}

@media only screen and (max-width:575.98px) {
    #mycookies #cookie_popup .cookie_body {
        overflow: hidden;
        overflow-y: scroll
    }
}

/* ---- advanced picker: currently commented out in cookies.cnf.js, kept for when it returns ---- */
#mycookies #cookie_popup-advanced-title {
    font-family: hind_vadodara_semi_bold;
    font-size: 16px !important
}

#mycookies .checkbox_outline {
    display: inline-block;
    padding: 0 15px;
    border-radius: 8px;
    box-shadow: none;
    margin: 5px;
    border: 1px solid #E3E5F0
}

#mycookies .checkbox:hover .checkbox_outline {
    border: 1px solid #1A1AD1
}

#mycookies .checkbox label::before {
    top: 3px !important
}

#mycookies .checkbox label::after {
    padding-top: 4px
}