/* Everybank site UX layer: intake, order panel, sticky actions, site chat. Pairs with /eb-ux.js. */
.eb-visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.eb-link{border:0;background:none;padding:0;font:inherit;color:#2346c8;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.eb-link:hover{color:#17191c}

/* intake: number of the purchase, right in the first screen */
.eb-intake{margin-top:26px;max-width:720px;padding:20px 22px;border:1px solid #c9d4e6;border-radius:20px;background:#fff;box-shadow:0 10px 30px #1f3b8f12}
.eb-intake-label{display:block;margin:0 0 10px;font-size:15px;font-weight:700;color:#17191c}
.eb-intake-row{display:flex;gap:10px}
.eb-intake-row input{flex:1;min-width:0;height:54px;padding:0 18px;border:1px solid #b9c3d3;border-radius:14px;font:16px/1.3 Arial,sans-serif;color:#17191c;background:#fafbfc}
.eb-intake-row input:focus{outline:2px solid #315cff;outline-offset:1px;background:#fff}
.eb-intake .button-primary,.eb-chat .button-primary,.eb-bar .button-primary{min-height:54px;padding:0 24px;border:0;border-radius:40px;background:#315cff;color:#fff;font:700 16px/1.2 Arial,sans-serif;cursor:pointer;white-space:nowrap;box-shadow:0 6px 16px #315cff2e}
.eb-intake .button-primary:hover,.eb-chat .button-primary:hover,.eb-bar .button-primary:hover{background:#2045d4}
.eb-intake .button-primary:disabled,.eb-chat .button-primary:disabled{opacity:.6;cursor:wait}
.eb-consent{display:flex;gap:9px;align-items:flex-start;margin-top:12px;font-size:13px;line-height:1.45;color:#50565e}
.eb-consent input{margin:2px 0 0;width:17px;height:17px;flex:none;accent-color:#315cff}
.eb-consent a{color:#2346c8}
.eb-consent.is-warning{color:#a3361f}
.eb-consent.is-warning input{outline:2px solid #d9573c;outline-offset:2px}
.eb-intake-alt{display:flex;gap:10px;align-items:center;margin:12px 0 0;font-size:15px;color:#7a828c}
.eb-intake-note,.eb-chat-note{margin:8px 0 0;font-size:14px;line-height:1.45;color:#a3361f}
.eb-intake-note:empty,.eb-chat-note:empty{display:none}
.eb-chat-note{color:#3e4a5c}
/* the intake replaces the hero's own widget button; secondary links stay */
.eb-has-intake .eb-start a[href^="https://widget.everybank.ru"]{display:none}
.eb-has-intake .eb-start:not(:has(a:not([href^="https://widget.everybank.ru"]))){display:none}

/* order panel: the widget opens next to the button */
.eb-order{margin:24px 0;padding:22px;border:1px solid #c9d4e6;border-radius:22px;background:#f6f8fc;scroll-margin-top:90px}
.eb-order.container{margin-inline:auto;box-sizing:border-box}
.eb-order-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}
.eb-order-title{margin:0;font-size:22px;font-weight:700;line-height:1.25;color:#17191c}
.eb-order-sub{margin:6px 0 0;font-size:15px;line-height:1.5;color:#50565e}
.eb-order-close{flex:none;padding:9px 16px;border:1px solid #c9d4e6;border-radius:30px;background:#fff;font:600 14px Arial,sans-serif;color:#17191c;cursor:pointer}
.eb-order iframe{display:block;width:100%;height:640px;border:0;border-radius:16px;background:#fff}
.eb-order-progress{display:flex;align-items:center;gap:12px;min-height:120px;padding:22px;border-radius:16px;background:#fff;font-size:17px;color:#17191c}
.eb-order-progress::before{content:"";width:22px;height:22px;flex:none;border:3px solid #c9d4e6;border-top-color:#315cff;border-radius:50%;animation:eb-spin .9s linear infinite}
.eb-order-progress[hidden],.eb-order iframe[hidden]{display:none}
.eb-order-fallback{margin:10px 0 0;font-size:13px;color:#7a828c}
.eb-order-fallback a{color:#2346c8}
@keyframes eb-spin{to{transform:rotate(360deg)}}

/* site chat */
.eb-chat{margin:48px 0;padding:24px;border:1px solid #c9d4e6;border-radius:24px;background:linear-gradient(180deg,#f3f6ff 0,#fff 140px);scroll-margin-top:90px}
.eb-chat-wrap{padding-bottom:20px}
.eb-chat-head{display:flex;gap:14px;align-items:center;margin-bottom:16px}
.eb-chat-head>div{flex:1}
.eb-chat-avatar{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:50%;background:#315cff;color:#fff;font:700 15px Arial,sans-serif;letter-spacing:.04em;position:relative}
.eb-chat-avatar::after{content:"";position:absolute;right:1px;bottom:1px;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#2fb36b}
.eb-chat-title{margin:0;font-size:21px;font-weight:700;line-height:1.25;color:#17191c}
.eb-chat-sub{margin:3px 0 0;font-size:14px;line-height:1.45;color:#50565e}
.eb-chat-reset{font-size:13px;color:#7a828c;align-self:flex-start}
.eb-chat-log{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow-y:auto;padding:14px;border-radius:16px;background:#eef2f9}
.eb-msg{max-width:82%;padding:10px 14px;border-radius:16px;font-size:15px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.eb-msg-manager{align-self:flex-start;background:#fff;border-bottom-left-radius:5px;color:#17191c;box-shadow:0 1px 2px #1f3b8f14}
.eb-msg-client{align-self:flex-end;background:#315cff;border-bottom-right-radius:5px;color:#fff}
.eb-msg-author{display:block;margin-bottom:2px;font-size:12px;font-weight:700;color:#2346c8}
.eb-chat-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 12px}
.eb-chip{padding:8px 14px;border:1px solid #c9d4e6;border-radius:30px;background:#fff;font:14px/1.3 Arial,sans-serif;color:#17191c;cursor:pointer}
.eb-chip:hover{border-color:#315cff;color:#2346c8}
.eb-chat-row{display:flex;gap:10px;align-items:flex-end}
.eb-chat-row textarea{flex:1;min-width:0;min-height:54px;max-height:180px;padding:15px 16px;border:1px solid #b9c3d3;border-radius:16px;font:16px/1.4 Arial,sans-serif;color:#17191c;background:#fff;resize:vertical}
.eb-chat-row textarea:focus{outline:2px solid #315cff;outline-offset:1px}

/* desktop: sticky order card in the free column next to the article */
.eb-side{display:none}
@media(min-width:1240px){
 main.eb-experience .article-layout.eb-has-side{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:56px;max-width:none;align-items:start}
 main.eb-experience .article-layout.eb-has-side>.article-toc{display:none}
 .eb-side{display:block;position:sticky;top:96px;grid-column:2;grid-row:1/span 20}
 .eb-side-card{padding:22px;border:1px solid #c9d4e6;border-radius:22px;background:#fff;box-shadow:0 14px 34px #1f3b8f14}
 .eb-side-title{margin:0;font-size:19px;font-weight:700;line-height:1.3;color:#17191c}
 .eb-side-text{margin:8px 0 0;font-size:14px;line-height:1.5;color:#50565e}
 .eb-intake-compact{margin-top:16px;padding:0;border:0;box-shadow:none;max-width:none}
 .eb-intake-compact .eb-intake-label{font-size:13px;font-weight:600;color:#50565e}
 .eb-intake-compact .eb-intake-row{flex-direction:column}
 .eb-intake-compact .eb-intake-row input{flex:none;width:100%;box-sizing:border-box}
 .eb-intake-compact .eb-intake-row input{height:48px;font-size:15px}
 .eb-intake-compact .button-primary{min-height:50px;width:100%;font-size:15px}
 .eb-intake-compact .eb-intake-alt{display:none}
 .eb-side-link{display:block;margin-top:14px;padding:0;border:0;background:none;font:600 15px Arial,sans-serif;color:#2346c8;text-align:left;text-decoration:none;cursor:pointer}
 .eb-side-link:hover{text-decoration:underline}
 .eb-side-trust{margin:16px 0 0;padding-top:14px;border-top:1px solid #e3e8f0;font-size:12px;line-height:1.45;color:#7a828c}
 .eb-bar{display:none!important}
}

/* phones and tablets: bottom action bar */
.eb-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fffffff2;border-top:1px solid #d8dce0;box-shadow:0 -8px 24px #1f3b8f14;transform:translateY(110%);transition:transform .22s ease}
.eb-bar.is-shown{transform:none}
.eb-bar .button{flex:1;min-height:50px;padding:0 12px;border-radius:40px;font:700 15px/1.2 Arial,sans-serif;cursor:pointer}
.eb-bar .button-outline{border:1px solid #b9c3d3;background:#fff;color:#17191c;position:relative}
.eb-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;border-radius:10px;background:#e5483b;color:#fff;font-size:12px}
.eb-badge[hidden]{display:none}
body.eb-bar-on{padding-bottom:76px}

/* header: the order action stays visible on phones */
@media(max-width:1050px){
 .header-actions .header-start{display:inline-flex!important}
}
@media(max-width:560px){
 /* the cabinet login stays in the menu; the order action and the menu button fit next to the logo */
 .header-actions .button-outline[data-lk]{display:none}
 .header-actions .header-start{min-height:42px;padding-inline:16px;font-size:13px;white-space:nowrap}
 .header-actions .header-start span{display:none}
}

@media(max-width:700px){
 .eb-intake{margin-top:20px;padding:16px}
 .eb-intake-row{flex-direction:column}
 .eb-intake-row input{flex:none;width:100%;box-sizing:border-box}
 .eb-intake .button-primary{width:100%}
 .eb-order{margin:18px 0;padding:14px;border-radius:18px}
 .eb-order-title{font-size:19px}
 .eb-chat{margin:36px 0;padding:16px;border-radius:20px}
 .eb-chat-head{flex-wrap:wrap;gap:12px}
 .eb-chat-head>div{flex:1 1 200px}
 .eb-chat-avatar{width:40px;height:40px;font-size:13px}
 .eb-chat-title{font-size:18px}
 .eb-chat-sub{font-size:13px}
 .eb-chat-chips{flex-wrap:nowrap;overflow-x:auto;margin-inline:-16px;padding:0 16px 4px;scrollbar-width:none}
 .eb-chip{flex:none}
 .eb-chat-row{flex-direction:column;align-items:stretch}
 .eb-chat .button-primary{width:100%}
 .eb-msg{max-width:90%}
}
@media(prefers-reduced-motion:reduce){.eb-bar{transition:none}.eb-order-progress::before{animation:none}}
