.bw-callback { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; font-family: inherit; color: #172b4d; }
.bw-callback *, .bw-callback *::before, .bw-callback *::after { box-sizing: border-box; }
.bw-callback [hidden] { display: none !important; }
.bw-callback button, .bw-callback input, .bw-callback select { font: inherit; text-transform: none; }
.bw-callback__tab { position: absolute; top: 50%; right: 0; transform: translateY(-50%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 58px; border: 1px solid #2477ee; border-right: 0; border-radius: 16px 0 0 16px; padding: 16px 9px; color: #fff; background: #0868db; box-shadow: 0 8px 28px #064ca52b; cursor: pointer; text-align: center; transition: background .18s, box-shadow .18s; }
.bw-callback__tab:hover { background: #075bc0; box-shadow: 0 10px 30px #064ca53d; }
.bw-callback__tab { animation: bw-callback-tab-enter .65s cubic-bezier(.16, 1, .3, 1) both, bw-callback-tab-highlight 1.25s ease-in-out .7s 2; }
.bw-callback__tab.has-been-opened { animation: none; }
.bw-callback__invitation { position: absolute; right: 74px; top: 50%; transform: translateY(-50%); width: min(300px, calc(100vw - 90px)); padding: 20px; border: 1px solid #2477ee; border-radius: 16px; background: #0868db; box-shadow: 0 8px 24px #172b4d26; pointer-events: auto; transform-origin: right center; animation: bw-callback-invitation-enter .85s cubic-bezier(.22, .68, .3, 1) both; }
.bw-callback__invitation::after { content: ''; position: absolute; right: -7px; top: calc(50% - 7px); width: 12px; height: 12px; background: #0868db; border-top: 1px solid #2477ee; border-right: 1px solid #2477ee; transform: rotate(45deg); }
.bw-callback__invitation p { margin: 0 0 16px; color: #fff; font-size: 17px; font-weight: 600; line-height: 1.5; }
.bw-callback__invitation-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bw-callback__invitation-actions button { min-height: 42px; padding: 9px 12px; border: 1px solid #f7b300; border-radius: 9px; background: #f7b300; color: #172b4d; font-size: 12px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.bw-callback__invitation-actions button:last-child { border-color: #ffffff66; background: transparent; color: #fff; }
.bw-callback__invitation-actions button:first-child:hover { background: #ffc32b; border-color: #ffc32b; }
.bw-callback__invitation-actions button:last-child:hover { background: #ffffff1a; }
@keyframes bw-callback-invitation-enter {
    0% { opacity: 0; transform: translate(38px, -50%) scale(.65) rotate(5deg); }
    55% { opacity: 1; transform: translate(-10px, -50%) scale(1.045) rotate(-1.5deg); }
    78% { opacity: 1; transform: translate(3px, -50%) scale(.985) rotate(.5deg); }
    100% { opacity: 1; transform: translate(0, -50%) scale(1) rotate(0); }
}
@keyframes bw-callback-tab-enter {
    from { opacity: 0; transform: translate(100%, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
}
@keyframes bw-callback-tab-highlight {
    0%, 100% { box-shadow: 0 8px 28px #064ca52b; }
    50% { box-shadow: 0 0 0 5px rgb(247 179 0 / 22%), 0 8px 34px rgb(8 104 219 / 38%); }
}
.bw-callback__tab-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffffff40; border-radius: 11px; background: #ffffff15; }
.bw-callback__tab-label { writing-mode: vertical-rl; transform: rotate(180deg); }
.bw-callback__tab strong { display: block; white-space: nowrap; font-size: 14px; line-height: 1.4; font-weight: 700; }
.bw-callback__chevron { transform: rotate(180deg); }
.bw-callback__overlay { position: absolute; inset: 0; height: 100%; height: 100dvh; display: grid; place-items: center; padding: 24px; pointer-events: auto; background: rgb(15 32 57 / 48%); overscroll-behavior: contain; }
.bw-callback__overlay { animation: bw-callback-backdrop .4s ease-out both; }
.bw-callback__panel { position: relative; display: grid; grid-template-columns: 48% 52%; width: min(920px, 100%); max-height: 100%; min-height: 0; overflow: hidden; background: #fff; border-radius: 24px; box-shadow: 0 24px 90px #081b4640; transform-origin: center; animation: bw-callback-enter .72s cubic-bezier(.22, .68, .3, 1) both; }
@keyframes bw-callback-backdrop { from { background-color: transparent; } to { background-color: rgb(15 32 57 / 48%); } }
@keyframes bw-callback-enter {
    0% { opacity: 0; transform: translateY(64px) scale(.82); }
    60% { opacity: 1; transform: translateY(-7px) scale(1.015); }
    82% { opacity: 1; transform: translateY(3px) scale(.995); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
/* The optional image layer can be supplied later through --bw-callback-image. */
.bw-callback__intro { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 44px 34px; background-color: #0868db; background-image: linear-gradient(145deg, rgb(8 104 219 / 94%), rgb(23 53 127 / 94%)), var(--bw-callback-image, none); background-size: cover; background-position: center; }
.bw-callback__eyebrow { display: block; color: #cce4ff; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.bw-callback__intro h2 { margin: 0 0 18px; color: #fff; font-size: 32px; line-height: 1.16; font-weight: 700; letter-spacing: -1px; }
.bw-callback__intro p { margin: 0; color: #e3eeff; font-size: 14px; line-height: 1.8; }
.bw-callback__divider { width: 100%; height: 1px; background: rgb(255 255 255 / 25%); }
.bw-callback__benefits { display: grid; gap: 15px; margin: 24px 0 0; padding: 0; list-style: none; }
.bw-callback__benefits li { position: relative; min-height: 22px; padding-left: 32px; color: #e3eeff; font-size: 12px; line-height: 1.65; }
.bw-callback__benefits li::before { content: '✓'; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #198754; color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.bw-callback__benefits strong { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.bw-callback__badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-top: 30px; padding: 9px 14px; border-radius: 999px; background: #f7b300; color: #172b4d; font-size: 12px; font-weight: 600; line-height: 1.4; }
.bw-callback__badge span { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #198754; color: #fff; }
.bw-callback__close { position: absolute; z-index: 1; right: 14px; top: 14px; display: grid; place-items: center; padding: 0; width: 40px; height: 40px; border: 1px solid #dce6f2; border-radius: 50%; color: #5c6d85; background: #fff; font-size: 26px !important; line-height: 1; cursor: pointer; }
.bw-callback__body { min-width: 0; min-height: 0; padding: 38px 36px 30px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.bw-callback__title { display: block; margin: 0 0 24px; padding: 0 30px 18px 0; border-bottom: 1px solid #e5edf7; color: #172b4d; font-size: 32px; line-height: 1.3; font-weight: 700; letter-spacing: -.5px; }
.bw-callback__description { display: none; margin: 0 0 25px; color: #6c7d92; font-size: 13px; line-height: 1.6; }
.bw-callback label { display: block; margin: 0 0 7px; color: #293d59; font-size: 12px; font-weight: 600; }
.bw-callback input:not([type="hidden"]), .bw-callback select { display: block; width: 100%; height: 44px; margin: 0 0 16px; padding: 0 12px; border: 1px solid #dbe3ed; border-radius: 9px; color: #172b4d; background: #fff; font-size: 14px; line-height: normal; }
.bw-callback input::placeholder { color: #8b97a9; }
.bw-callback button:focus-visible, .bw-callback input:focus-visible, .bw-callback select:focus-visible, .bw-callback__result:focus-visible { outline: 3px solid #81b6ff; outline-offset: 3px; }
.bw-callback__submit { appearance: none; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 6px; padding: 14px 20px; border: 1px solid #f7b300; border-radius: 12px; background: #f7b300; color: #172b4d; box-shadow: none; font-size: 16px !important; font-weight: 700 !important; line-height: 1.3; text-align: center; cursor: pointer; transition: background-color .18s, border-color .18s; }
.bw-callback__submit svg { flex: 0 0 auto; }
.bw-callback__submit:not(:disabled):hover { background: #ffc32b; border-color: #ffc32b; }
.bw-callback__submit:not(:disabled):active { background: #e6a600; border-color: #e6a600; }
.bw-callback__submit:disabled { opacity: .65; cursor: wait; box-shadow: none; transform: none; }
.bw-callback__privacy { margin: 12px 0 0; color: #7e8a9b; font-size: 10px; line-height: 1.6; }
.bw-callback__result { margin: 14px 0 0; padding: 15px; border-radius: 10px; color: #9c3535; background: #fff0f0; font-size: 13px; line-height: 1.6; }
.bw-callback__result.is-success { margin: 0; color: #255e4b; background: #edf8f2; }
@media (max-width: 767px) {
    body:has(#navbarNav.show, #navbarNav.collapsing) .bw-callback__tab,
    body:has(#navbarNav.show, #navbarNav.collapsing) .bw-callback__invitation { display: none !important; }
    .bw-callback__invitation { right: 58px; width: min(290px, calc(100vw - 70px)); padding: 16px; }
    .bw-callback__tab { width: 46px; padding: 13px 6px; gap: 10px; border-radius: 13px 0 0 13px; }
    .bw-callback__tab-icon { width: 32px; height: 32px; border-radius: 9px; }
    .bw-callback__tab strong { font-size: 12px; }
    .bw-callback__overlay { top: var(--bw-callback-top, 0px); bottom: auto; height: var(--bw-callback-height, 100dvh); padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
    .bw-callback__panel { display: flex; flex-direction: column; width: min(420px, 100%); border-radius: 20px; }
    .bw-callback__intro { display: none; }
    .bw-callback__body { padding: 30px 22px 24px; }
    .bw-callback__title { margin-bottom: 8px; padding: 0 46px 0 0; border-bottom: 0; font-size: 23px; }
    .bw-callback__description { display: block; margin-bottom: 24px; color: #0868db; font-size: 15px; font-weight: 600; line-height: 1.5; }
    .bw-callback input:not([type="hidden"]), .bw-callback select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .bw-callback * { transition: none !important; animation: none !important; } }
