/* brightlink.ae pages: small additions for /bl-site.js (the website's own styles stay as they are) */
[data-bl-err]{margin-top:.25rem;font-size:.75rem;font-weight:700;color:var(--color-primary,#e31e25)}
[data-bl-msg]:empty{display:none}
ul[role="listbox"][aria-label]{scrollbar-width:thin}

/* header: phone, account and Apply now (also next to the menu button where the full menu is folded away) */
.bl-cta-copy{display:none}
@media (min-width:640px) and (max-width:89.99rem){.bl-cta-copy{display:inline-flex}}
/* phones: account icon + a highlighted, compact Apply now; smaller icons so the header fits */
@media (max-width:639px){
  .bl-cta-copy{display:inline-flex;gap:6px!important}
  .bl-cta-copy .bl-ic{width:34px!important;height:34px!important}
  .bl-cta-copy .bl-ic svg{width:17px;height:17px}
  .bl-cta-copy .bl-apply{padding:7px 12px!important;font-size:12.5px!important;gap:0!important;animation:bl-pulse 2.2s ease-out infinite}
  header [role="group"] button[aria-haspopup="listbox"]{padding-left:2px!important;padding-right:2px!important}
  header [role="group"] button[aria-haspopup="listbox"] span{display:none}
  header img[src="/Brightlinklogo.png"]{height:2.3rem!important}
}
@keyframes bl-pulse{0%{box-shadow:0 0 0 0 rgba(227,30,37,.55)}70%{box-shadow:0 0 0 9px rgba(227,30,37,0)}100%{box-shadow:0 0 0 0 rgba(227,30,37,0)}}
@media (prefers-reduced-motion:reduce){.bl-cta-copy .bl-apply{animation:none}}

/* small phones (≤ 420px): everything in the header fits on one line */
@media (max-width:420px){
  header img[src="/Brightlinklogo.png"]{height:1.75rem!important}
  header .flex.items-center.justify-between.gap-4{gap:8px!important}
  header .flex.items-center.gap-2.xxl\:hidden{gap:6px!important}
  .bl-cta-copy{gap:5px!important}
  .bl-cta-copy .bl-ic{width:32px!important;height:32px!important}
  .bl-cta-copy .bl-apply{padding:6px 10px!important;font-size:12px!important}
  header button[aria-controls="mobile-nav"]{width:38px!important;height:38px!important}
}
@media (max-width:350px){.bl-cta-copy .bl-ic-user{display:none!important}}
/* desktop header: when a language's words are long (German, Russian…), it is tightened step by step so that
   everything, the language button included, stays on screen */
/* desktop menu: clear space between the items; on smaller screens the logo and buttons give way first */
@media (min-width:1024px){header.sticky nav ul{column-gap:26px!important}}
header.bl-fit1 nav ul{column-gap:20px!important}
header.bl-fit1 .bl-cta{gap:6px!important}
header.bl-fit1 .bl-cta .bl-apply{padding-left:16px!important;padding-right:16px!important;font-size:15px!important}
header.bl-fit2 nav ul{column-gap:18px!important}
header.bl-fit2 nav{padding-left:0!important;padding-right:0!important}
header.bl-fit2 a[aria-label*="home"] img,header.bl-fit2 a[aria-label*="Brightlink"] img{max-width:104px!important;height:auto!important}
header.bl-fit2 .bl-cta .bl-apply{font-size:14px!important;padding-left:14px!important;padding-right:14px!important}
header.bl-fit3 nav ul{column-gap:16px!important}
header.bl-fit3 nav ul .text-18,header.bl-fit3 nav ul .text-17{font-size:16px!important}
header.bl-fit3 a[aria-label*="home"] img,header.bl-fit3 a[aria-label*="Brightlink"] img{max-width:92px!important}
header.bl-fit4 nav ul{column-gap:14px!important}
header.bl-fit4 nav ul .text-18,header.bl-fit4 nav ul .text-17,header.bl-fit4 nav ul li > *{font-size:15px!important}
header.bl-fit4 .bl-cta .bl-apply{font-size:13.5px!important;padding-left:12px!important;padding-right:12px!important}
/* desktop header: all menu items one size, and on wide screens the header row may use more of the screen width,
   so the menu keeps its normal spacing next to the account icon and "Apply now" */
@media (min-width:1536px){
  header.sticky nav ul .text-18,header.sticky nav ul .text-17{font-size:17px}
  header.sticky > .shell{max-width:min(calc(100vw - 48px),1480px)}
}
/* ---- floating side bar (calculator, WhatsApp, AI assistant, referral, account, back to top) ---- */
.bl-hidden-orig,html.bl-has-dock #chatBtn{display:none!important}
.bl-dock{position:fixed;right:18px;top:50%;transform:translateY(-50%);z-index:45;transition:opacity .2s,visibility .2s;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.bl-dock-top{margin-right:4px}
.bl-dock-btn{position:relative;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff;color:#e31e25;border:1px solid rgba(227,30,37,.28);box-shadow:0 10px 24px -14px rgba(27,29,29,.45);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,color .2s ease;text-decoration:none;padding:0}
.bl-dock-btn:hover{transform:translateY(-2px) scale(1.05);background:#e31e25;color:#fff;box-shadow:0 14px 30px -12px rgba(227,30,37,.7)}
.bl-dock-face{padding:0;overflow:visible;border:2px solid #e31e25}
.bl-dock-face img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.bl-dock-online{position:absolute;right:1px;bottom:2px;width:12px;height:12px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.bl-dock-top{opacity:0;pointer-events:none;transform:translateY(6px);width:44px;height:44px}
.bl-dock-top.is-on{opacity:1;pointer-events:auto;transform:none}
.bl-dock-btn[data-tip]::after{content:attr(data-tip);position:absolute;right:calc(100% + 12px);top:50%;transform:translateY(-50%) translateX(6px);background:#1b1d1d;color:#fff;font:600 13px/1.2 var(--font-body,system-ui,sans-serif);white-space:nowrap;max-width:260px;overflow:hidden;text-overflow:ellipsis;padding:8px 12px;border-radius:10px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.bl-dock-btn:hover::after{opacity:1;transform:translateY(-50%)}
/* the calculator button, as brightlink.ae's: red, rings, shaking icon; widens on hover with "Instant Calculators" */
.bl-dock .bl-dock-calc{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:56px;height:56px;padding:0 10px;border-radius:999px;overflow:hidden;background:#e31e25;color:#fff;border:0;box-shadow:0 16px 35px -12px rgba(227,30,37,.8);transition:width .3s ease-out,background-color .3s ease-out,box-shadow .3s}
.bl-dock .bl-dock-calc:hover,.bl-dock .bl-dock-calc:focus-visible{width:208px;background:#b40208;color:#fff;transform:none}
.bl-calc-ic{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px}
.bl-calc-wave{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(255,255,255,.7);pointer-events:none;animation:bl-calc-wave 1.8s ease-out infinite}
.bl-calc-wave2{animation-delay:.6s}
.bl-calc-shake{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.1);animation:bl-calc-shake 1.6s ease-in-out infinite}
.bl-calc-shake svg{width:20px;height:20px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}
.bl-calc-txt{display:flex;flex-direction:column;text-align:left;white-space:nowrap;opacity:0;transition:opacity .2s ease-out;line-height:1.15}
.bl-calc-txt small{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.15em;color:rgba(255,255,255,.8)}
.bl-calc-txt b{font-size:15px;font-weight:700}
.bl-dock-calc:hover .bl-calc-txt,.bl-dock-calc:focus-visible .bl-calc-txt{opacity:1;transition-delay:.1s}
@keyframes bl-calc-wave{0%{opacity:.6;transform:scale(1)}to{opacity:0;transform:scale(1.9)}}
@keyframes bl-calc-shake{0%,to{transform:scale(1) rotate(0)}20%{transform:scale(1.08) rotate(-6deg)}40%{transform:scale(1.08) rotate(6deg)}60%{transform:scale(1.03) rotate(-3deg)}80%{transform:scale(1.03) rotate(3deg)}}
.bl-dock{direction:ltr}
[dir=rtl] .bl-calc-txt{direction:rtl;text-align:right}
@media (prefers-reduced-motion:reduce){.bl-calc-wave,.bl-calc-shake{animation:none}}
/* the chat box opens next to the side bar */
html.bl-has-dock #chatPanel{left:auto;right:86px;bottom:24px}
/* phones and tablets: a smaller bar at the bottom right; account is already in the header */
@media (max-width:1023px){
  .bl-dock{top:auto;bottom:16px;right:12px;transform:none;gap:10px}
  .bl-dock-btn{width:46px;height:46px}
  .bl-dock-btn svg{width:20px;height:20px}
  .bl-dock-user,.bl-dock-gift{display:none}
  .bl-dock-btn[data-tip]::after{display:none}
  .bl-dock-top{width:40px;height:40px}
  .bl-dock .bl-dock-calc,.bl-dock .bl-dock-calc:hover{width:48px;height:48px;padding:0 6px}
  .bl-calc-txt{display:none}
  html.bl-has-dock #chatPanel{left:10px;right:10px;width:auto;bottom:16px}
}

/* arrows for card rows that scroll sideways */
.bl-slide-btn{position:absolute;z-index:5;width:46px;height:46px;margin-top:-23px;display:grid;place-items:center;border-radius:999px;border:1px solid rgba(227,30,37,.25);background:#fff;color:#e31e25;box-shadow:0 14px 30px -14px rgba(180,2,8,.55);cursor:pointer;transition:background .2s,color .2s,opacity .2s,transform .2s}
.bl-slide-btn:hover{background:#e31e25;color:#fff;transform:scale(1.06)}
.bl-slide-prev{left:-6px}.bl-slide-next{right:-6px}
.bl-slide-btn.is-off{opacity:.35;pointer-events:none}
.bl-slide-btn[hidden]{display:none}
@media (max-width:640px){.bl-slide-btn{width:38px;height:38px;margin-top:-19px}.bl-slide-prev{left:2px}.bl-slide-next{right:2px}}

/* the side bar steps back while a pop-up, the chat, the feedback box or the phone menu is open */
html:has([role="dialog"][aria-modal="true"]:not([hidden])) .bl-dock,
html:has(#chatPanel:not([hidden])) .bl-dock,
html:has(.fb-overlay) .bl-dock,
html:has(button[aria-controls="mobile-nav"][aria-expanded="true"]) .bl-dock,
html.bl-dock-off .bl-dock{opacity:0;visibility:hidden;pointer-events:none}

/* phones: long button texts wrap instead of running off the screen; long words (German, Russian) break with a hyphen */
@media (max-width:640px){
  main a.min-w-max,main button.min-w-max{min-width:0!important;white-space:normal;height:auto!important;min-height:3.125rem;padding-top:.65rem;padding-bottom:.65rem;text-align:center;line-height:1.25}
  main .grid>*{min-width:0}
  main h1,main h2,main h3,main h4,main p,main li,main dt,main dd,main label,main blockquote{overflow-wrap:break-word;hyphens:auto}
}

/* side bar: every button like the calculator: round, widens on hover to show its name */
.bl-dock .bl-dock-btn:not(.bl-dock-calc){display:flex;align-items:center;justify-content:flex-start;gap:10px;width:auto;max-width:52px;height:52px;padding:0 14px 0 0;border-radius:999px;overflow:hidden;white-space:nowrap;transition:max-width .32s ease-out,background-color .25s,color .25s,box-shadow .25s,transform .2s}
.bl-dock .bl-di{position:relative;flex:none;display:grid;place-items:center;width:50px;height:50px;border-radius:50%}
.bl-dock .bl-di img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid #fff}
.bl-dock .bl-dl{font:700 14px/1 var(--font-display,inherit);opacity:0;transition:opacity .2s}
.bl-dock .bl-dock-btn:not(.bl-dock-calc):hover,.bl-dock .bl-dock-btn:not(.bl-dock-calc):focus-visible{max-width:240px;transform:none;background:#b40208;color:#fff;box-shadow:0 16px 32px -14px rgba(180,2,8,.75)}
.bl-dock .bl-dock-btn:hover .bl-dl,.bl-dock .bl-dock-btn:focus-visible .bl-dl{opacity:1;transition-delay:.1s}
.bl-dock .bl-dock-btn::after{display:none!important}
/* WhatsApp in its own green */
.bl-dock .bl-dock-wa{background:#25D366;color:#fff;border-color:#25D366;box-shadow:0 12px 26px -12px rgba(37,211,102,.75)}
.bl-dock .bl-dock-wa:hover{background:#1ebe5b!important;box-shadow:0 16px 32px -14px rgba(37,211,102,.8)!important}
/* the AI assistant as an avatar with the online dot */
.bl-dock .bl-dock-chat{border:2px solid #e31e25}
.bl-dock .bl-dock-chat .bl-dock-online{right:6px;bottom:6px}
.bl-dock .bl-dock-face .bl-di{background:#fff}
.bl-dock .bl-dock-top{max-width:44px;height:44px}
.bl-dock .bl-dock-top .bl-di{width:42px;height:42px}
@media (max-width:1023px){
  .bl-dock .bl-dock-btn:not(.bl-dock-calc),.bl-dock .bl-dock-btn:not(.bl-dock-calc):hover{max-width:46px;height:46px;padding:0}
  .bl-dock .bl-di{width:44px;height:44px}
  .bl-dock .bl-dl{display:none}
}

/* side bar: sharp (no half-pixel centring) and lighter shadows */
.bl-dock{top:0!important;bottom:0;margin:auto 0;height:max-content;transform:none!important}
.bl-dock .bl-dock-btn{box-shadow:0 4px 12px -6px rgba(27,29,29,.28)!important;-webkit-font-smoothing:antialiased}
.bl-dock .bl-dock-btn:hover{box-shadow:0 8px 18px -8px rgba(180,2,8,.45)!important}
.bl-dock .bl-dock-wa{box-shadow:0 4px 12px -6px rgba(37,211,102,.55)!important}
.bl-dock .bl-dock-calc{box-shadow:0 6px 16px -8px rgba(227,30,37,.55)!important}
.bl-dock .bl-calc-shake svg{filter:none}
.bl-dock .bl-dock-face .bl-di svg{width:46px;height:46px;border-radius:50%;display:block}
.bl-dock .bl-dock-chat{border-color:#e31e25;background:#fff}
@media (max-width:1023px){.bl-dock{top:auto!important;bottom:16px!important;margin:0}.bl-dock .bl-dock-face .bl-di svg{width:40px;height:40px}}

/* Language button in the header: soft red border and light shadow */
header button[aria-haspopup="listbox"].rounded-full{border:1px solid rgba(227,30,37,.28);background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.06),0 2px 8px rgba(227,30,37,.08);transition:border-color .15s,box-shadow .15s,background-color .15s}
header button[aria-haspopup="listbox"].rounded-full:hover,header button[aria-haspopup="listbox"][aria-expanded="true"]{border-color:rgba(227,30,37,.55);background:#fff5f5;box-shadow:0 2px 4px rgba(16,24,40,.06),0 4px 14px rgba(227,30,37,.14)}

/* back to top: the arrow exactly in the middle of its circle, lined up under the other buttons */
.bl-dock .bl-dock-btn.bl-dock-top{max-width:46px;height:46px;padding:0;margin-right:3px}
.bl-dock .bl-dock-btn.bl-dock-top .bl-di{width:44px;height:44px}
.bl-dock .bl-dock-btn.bl-dock-top:hover,.bl-dock .bl-dock-btn.bl-dock-top:focus-visible{max-width:240px;padding:0 14px 0 0}
@media (max-width:1023px){.bl-dock .bl-dock-btn.bl-dock-top,.bl-dock .bl-dock-btn.bl-dock-top:hover{max-width:46px;padding:0;margin-right:0}}
