/* ==========================================================================
   Floating widgets (chat, accessibility, theme, back to top), copied from style.css.
   RC-09 audit (2026-11-16): style.css STAYS in the global library, so every page loads both copies; this block is a
   safety net for a lean page that drops style.css and is not needed while style.css is global. The rules match
   style.css except three phone values: style.css redefines the side offset (0.75rem) and the button size (44px)
   later in the file, and this copy, loaded after style.css, re-asserts the first values (1rem offset, 46px
   buttons). So the copy is not a no-op and was left in place; before deleting it, decide which phone values are
   right and keep them in one place.
   Kept FIRST in this file so the Lbayk overrides below still win.
   ========================================================================== */
/* ---- Floating Action Buttons ---- */
.so-floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

[dir="rtl"] .so-floating-actions {
  right: auto;
  left: 1.5rem;
}

.so-floating-actions__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.so-floating-actions__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.so-floating-actions__btn--top {
  background: #162b3a;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.so-floating-actions__btn--top.so-back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 640px) {
  .so-floating-actions {
    bottom: 1rem;
    right: 1rem;
  }
  [dir="rtl"] .so-floating-actions {
    left: 1rem;
  }
  .so-floating-actions__btn {
    width: 46px;
    height: 46px;
  }
}

.so-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--so-header-bg, #162B3A);
  border-bottom: 1px solid rgba(255,114,94, 0.12);
  /* No backdrop-filter: the header background is fully opaque (#162B3A) with no
     translucent/scrolled state, so blurring behind it is invisible — it was pure
     GPU paint cost on a sticky element repainted every scroll frame. */
}

/* ---- BACK-TO-TOP BUTTON ---- */
.so-back-to-top {
  position: fixed;
  bottom: 7rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--so-primary, #087F72);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(8,127,114, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s;
}
.so-back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.so-back-to-top:hover {
  background: var(--so-primary-dark, #05635A);
  box-shadow: 0 6px 20px rgba(8,127,114, 0.45);
}
.so-back-to-top:active {
  transform: scale(0.95);
}
.so-back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}
/* RTL: mirror to left side */
[dir="rtl"] .so-back-to-top {
  right: auto;
  left: 1.5rem;
}

/* ---- LIVE CHAT WIDGET (Left Side) ---- */
.so-chat {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
}
[dir="rtl"] .so-chat {
  left: auto;
  right: 1.5rem;
}

/* Trigger Button */
.so-chat__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: none;
  border-radius: 50%;
  background: var(--so-primary, #087F72);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(8,127,114, 0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.so-chat__trigger:hover {
  background: var(--so-primary-dark, #05635A);
  box-shadow: 0 6px 24px rgba(8,127,114, 0.5);
  transform: scale(1.05);
}
.so-chat__trigger-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: opacity 0.2s, transform 0.2s;
}
.so-chat__trigger-icon--close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
}
.so-chat[data-open="true"] .so-chat__trigger-icon--chat {
  opacity: 0;
  transform: rotate(90deg);
}
.so-chat[data-open="true"] .so-chat__trigger-icon--close {
  opacity: 1;
  transform: rotate(0);
}
.so-chat__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--so-primary, #087F72);
  animation: so-chat-pulse 2.5s ease-out infinite;
}
.so-chat[data-open="true"] .so-chat__pulse {
  animation: none;
  opacity: 0;
}
@keyframes so-chat-pulse {
  0%   { transform: scale(1); opacity: 0.5; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Chat Panel */
.so-chat__panel {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 0;
  width: 22rem;
  height: 32rem;
  background: var(--so-white, #fff);
  border: 1px solid var(--so-ash, #E8E6E1);
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(22,43,58, 0.2), 0 0 0 1px rgba(22,43,58, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem) scale(0.95);
  transform-origin: bottom left;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
[dir="rtl"] .so-chat__panel {
  left: auto;
  right: 0;
  transform-origin: bottom right;
}
.so-chat[data-open="true"] .so-chat__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.so-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: var(--so-deep-navy, #162B3A);
  color: #fff;
  flex-shrink: 0;
}
.so-chat__header-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.so-chat__header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--so-primary, #087F72);
  border-radius: 0.5rem;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: var(--so-font-heading);
  flex-shrink: 0;
}
.so-chat__header-title {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--so-font-heading);
}
.so-chat__header-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.6);
}
.so-chat__status-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.so-chat__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 0.375rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s;
}
.so-chat__close:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.so-chat__close svg { width: 1rem; height: 1rem; }

/* Tabs */
.so-chat__tabs {
  display: flex;
  background: var(--so-cloud, #F8F9FA);
  border-bottom: 1px solid var(--so-ash, #E8E6E1);
  flex-shrink: 0;
}
.so-chat__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 0;
  min-height: 2.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--so-stone, #9B9689);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.so-chat__tab:hover {
  color: var(--so-charcoal, #3A3A38);
}
.so-chat__tab--active {
  color: var(--so-primary, #087F72);
  border-bottom-color: var(--so-primary, #087F72);
  font-weight: 600;
}

/* Chat Body */
.so-chat__body {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.so-chat__body--active {
  display: flex;
}

/* Messages */
.so-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.so-chat__msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  max-width: 90%;
}
.so-chat__msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.so-chat__msg--system {
  align-self: center;
  max-width: 100%;
}
.so-chat__msg-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--so-primary, #087F72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 800;
  font-family: var(--so-font-heading);
  flex-shrink: 0;
}
.so-chat__msg-bubble {
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  background: var(--so-cloud, #F8F9FA);
  color: var(--so-near-black, #1A1A18);
  border-bottom-left-radius: 0.25rem;
}
.so-chat__msg--user .so-chat__msg-bubble {
  background: var(--so-primary, #087F72);
  color: #fff;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 0.25rem;
}
.so-chat__msg-bubble--system {
  background: var(--so-sand-light, #FFF7ED);
  color: var(--so-charcoal, #3A3A38);
  font-size: 0.75rem;
  text-align: center;
  border-radius: 0.75rem;
  border: 1px solid var(--so-secondary-light, #FFD9D2);
}

/* Quick pick buttons inside chat */
.so-chat__picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.so-chat__pick-btn {
  padding: 0.3125rem 0.75rem;
  min-height: 2.75rem;
  border: 1.5px solid var(--so-ash, #E8E6E1);
  border-radius: 22px;
  background: var(--lbayk-theme-surface, #fff);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--so-charcoal, #3A3A38);
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}

.so-chat__pick-btn:hover {
  border-color: var(--so-primary, #087F72);
  background: var(--so-pale-green, #E6F4F2);
  color: var(--so-primary, #087F72);
}

/* Service results inside chat bubble */
.so-chat__msg-bubble a {
  color: var(--so-primary, #087F72);
  text-decoration: none;
  font-weight: 600;
}

.so-chat__msg-bubble a:hover {
  text-decoration: underline;
}

/* Input Area */
.so-chat__input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--so-ash, #E8E6E1);
  background: var(--so-white, #fff);
  flex-shrink: 0;
}

.so-chat__inline-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.65rem 0.8rem 0.8rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: 0.75rem;
  background: rgba(37, 211, 102, 0.08);
  color: var(--lbayk-dk-text-green, #168348);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.so-chat__inline-contact:hover,
.so-chat__inline-contact:focus-visible {
  border-color: rgba(37, 211, 102, 0.55);
  background: rgba(37, 211, 102, 0.15);
  color: var(--lbayk-dk-text-green, #116b3a);
}

.so-chat__inline-contact svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex: 0 0 auto;
}
.so-chat__input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--so-ash, #E8E6E1);
  border-radius: var(--so-radius-full, 9999px);
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--so-near-black, #1A1A18);
  background: var(--so-cloud, #F8F9FA);
  outline: none;
  transition: border-color 0.2s;
}
.so-chat__input:focus {
  border-color: var(--so-primary, #087F72);
}
.so-chat__input::placeholder {
  color: var(--so-stone, #9B9689);
}
.so-chat__send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--so-primary, #087F72);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.so-chat__send:hover {
  background: var(--so-primary-dark, #05635A);
}
.so-chat__send svg { width: 1rem; height: 1rem; }

/* Human Agent Form */
.so-chat__human-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem;
  border-top: 1px solid var(--so-ash, #E8E6E1);
  flex-shrink: 0;
}
.so-chat__human-form .so-chat__input {
  border-radius: 0.5rem;
}
.so-chat__connect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem;
  background: var(--so-primary, #087F72);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.so-chat__connect-btn:hover {
  background: var(--so-primary-dark, #05635A);
}

/* WhatsApp Panel Body */
.so-chat__whatsapp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  gap: 0.75rem;
}
.so-chat__whatsapp-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--lbayk-dk-tint-teal, #E6F4F2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.so-chat__whatsapp-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--so-near-black, #1A1A18);
  margin: 0;
}
.so-chat__whatsapp-desc {
  font-size: 0.8125rem;
  color: var(--so-stone, #9B9689);
  line-height: 1.5;
  margin: 0;
}
.so-chat__whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--so-radius-full, 9999px);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.so-chat__whatsapp-btn:hover {
  background: #1ebe57;
  color: #fff;
  transform: translateY(-1px);
}
.so-chat__whatsapp-number {
  font-size: 0.75rem;
  color: var(--so-stone, #9B9689);
  margin: 0;
  direction: ltr;
}

/* Typing indicator */
.so-chat__typing {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--so-cloud, #F8F9FA);
  border-radius: 1rem;
  width: fit-content;
}
.so-chat__typing-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--so-stone, #9B9689);
  animation: so-chat-typing 1.4s infinite ease-in-out;
}
.so-chat__typing-dot:nth-child(2) { animation-delay: 0.2s; }
.so-chat__typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes so-chat-typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .so-chat__pulse, .so-chat__typing-dot { animation: none; }
  .so-chat__panel { transition: none; }
}

@media (max-width: 768px) {
  .so-back-to-top { bottom: 6rem; right: 1rem; width: 2.5rem; height: 2.5rem; }
  [dir="rtl"] .so-back-to-top { right: auto; left: 1rem; }
  .so-chat { bottom: 1rem; left: 1rem; }
  [dir="rtl"] .so-chat { left: auto; right: 1rem; }
  .so-chat__trigger { width: 3rem; height: 3rem; }
  .so-chat__panel { width: calc(100vw - 2rem); height: calc(100dvh - 6rem); left: 0; max-height: 28rem; }
  [dir="rtl"] .so-chat__panel { left: auto; right: 0; }
}

/* Shared floating controls stay in one flow, including the scroll button. */
.so-floating-actions { flex-direction: column; gap: 12px; }
.so-floating-actions > .so-floating-actions__btn { position: static; inset: auto; order: 0; flex: 0 0 auto; }
.so-floating-actions > .so-floating-actions__btn--top { order: 1; visibility: hidden; }
.so-floating-actions > .so-floating-actions__btn--theme { order: 2; }
.so-floating-actions > .so-floating-actions__btn--a11y { order: 3; }
.so-floating-actions > .so-back-to-top--visible { visibility: visible; }
.so-floating-actions > .so-back-to-top {
  /* Keep the item inside the flex stack throughout its fade transition. */
  transform: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s;
}
.so-floating-actions > .so-back-to-top:active { transform: scale(0.95); }
/* ========================= end of widget copy ========================= */
/* Lbayk base for every Egypt-market page (portal, support, legal and sign-in).
   IBM Plex Sans Arabic is self-hosted (SIL OFL 1.1, fonts/ibm-plex-sans-arabic/LICENSE.txt)
   and covers Arabic and Latin. Focus rings are two-tone (ring plus halo), so they show on
   light, tinted and dark backgrounds; dark bands swap the colours through the variables. */
@font-face{font-family:'IBM Plex Sans Arabic';src:url(../fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-Regular.woff2) format('woff2');font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Sans Arabic';src:url(../fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-SemiBold.woff2) format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Sans Arabic';src:url(../fonts/ibm-plex-sans-arabic/IBMPlexSansArabic-Bold.woff2) format('woff2');font-weight:700 900;font-style:normal;font-display:swap}
:root{--lb-font:'IBM Plex Sans Arabic',Tajawal,system-ui,-apple-system,'Segoe UI',sans-serif;--lb-base-ink:#162b3a;--lb-base-accent:#05635a;--lb-focus:#175cd3;--lb-focus-halo:#fff}
.lb-portal-page{--so-font-sans:var(--lb-font);--so-font-heading:var(--lb-font);--so-font-arabic:var(--lb-font);font-family:var(--lb-font);color:var(--lb-base-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.lb-portal-page :is(h1,h2,h3,h4,h5,h6,button,input,select,textarea){font-family:inherit}
.lb-portal-page ::placeholder{color:var(--lbayk-dk-muted, #5b6d76);opacity:1}
.lb-portal-page :is(a,button,input,select,textarea,summary,[tabindex]:not([tabindex="-1"])):focus-visible{outline:3px solid var(--lb-focus);outline-offset:3px;box-shadow:0 0 0 9px var(--lb-focus-halo)}
.lb-portal-page :is(input,select,textarea):focus-visible{border-color:var(--lb-base-accent);outline-offset:2px}
.lb-portal-page .visually-hidden.focusable:focus{position:fixed!important;top:12px;inset-inline-start:12px;z-index:10002;width:auto;height:auto;clip:auto;overflow:visible;padding:12px 20px;border-radius:10px;background:var(--lb-base-ink);color:#fff;font-weight:700;outline:3px solid #ffd56a;outline-offset:2px}

/* Logo mark: the app-icon tile, shared by the site header, footer and sign-in pages. */
.lb-eg-brand__mark{display:inline-grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:13px;background:#087f72;box-shadow:inset 0 -3px 0 rgba(0,0,0,.14)}
.lb-eg-brand__mark svg{display:block;width:36px;height:36px}
.lb-auth-brand{display:inline-flex;align-items:center;gap:12px;color:var(--lb-base-ink);font-weight:700}
.lb-auth-symbol svg{width:46px;height:46px}

/* Trial badge beside the wordmark: ink on yellow (about 11:1). */
.lb-trial-badge{display:inline-flex;align-items:center;vertical-align:middle;margin-inline-start:8px;padding:2px 10px;border-radius:999px;background:var(--lb-trial-yellow,#ffd56a);color:var(--lbayk-theme-ink, #162b3a);border:1.5px solid #162b3a;font-size:13px;font-weight:700;line-height:1.5;letter-spacing:0;white-space:nowrap}
@media(max-width:640px){.lb-trial-badge{font-size:12px;padding:1px 8px;margin-inline-start:6px}}

/* Header lockup: tile, wordmark, trial badge and slogan read as one balanced unit.
   The wordmark follows the approved لبيك / Lbayk master (heavy weight, no diacritics);
   the slogan is the approved tagline in teal-dark, one line. */
.lb-portal-page .lb-eg-brand{gap:12px;align-items:center}
.lb-portal-page .lb-eg-brand__text{display:flex;flex-direction:column;justify-content:center;min-width:0}
.lb-portal-page .lb-eg-brand__name{display:flex;align-items:center;gap:8px;font-size:31px;font-weight:800;line-height:1.05;letter-spacing:-.01em;color:var(--lbayk-theme-ink, #162b3a)}
.lb-portal-page:lang(ar) .lb-eg-brand__name,.lb-portal-page [lang=ar] .lb-eg-brand__name{letter-spacing:0}
.lb-portal-page .lb-eg-brand__name .lb-trial-badge{margin:0;padding:1px 8px;font-size:12px;line-height:1.5}
.lb-portal-page .lb-eg-brand small{margin-top:5px;max-width:none;font-size:14px;font-weight:600;line-height:1.2;white-space:nowrap;color:var(--lbayk-dk-text-teal, #05635a)}
.lb-portal-page .lb-eg-brand__mark{width:48px;height:48px;border-radius:14px}
.lb-portal-page .lb-eg-brand__mark svg{width:37px;height:37px}
.lb-portal-page .lb-eg-footer__brand .lb-eg-brand__mark{width:44px;height:44px;border-radius:13px}
.lb-portal-page .lb-eg-footer__brand .lb-eg-brand__mark svg{width:34px;height:34px}
/* Medium widths keep the nav on one line: smaller wordmark, slogan hidden by lbayk-egypt.css. */
@media(min-width:1001px) and (max-width:1240px){.lb-portal-page .lb-eg-brand__name{font-size:28px}.lb-portal-page .lb-eg-brand__mark{width:44px;height:44px;border-radius:13px}.lb-portal-page .lb-eg-brand__mark svg{width:34px;height:34px}}
@media(min-width:1001px) and (max-width:1120px){.lb-portal-page .lb-eg-brand__name{font-size:26px}}
/* Below the menu-button breakpoint the header has room again, so the slogan returns. */
@media(max-width:1000px){.lb-portal-page .lb-eg-brand small{display:block;font-size:13px;margin-top:4px}}
@media(max-width:640px){.lb-portal-page .lb-eg-brand{gap:10px}.lb-portal-page .lb-eg-brand__mark{width:42px;height:42px;border-radius:12px}.lb-portal-page .lb-eg-brand__mark svg{width:32px;height:32px}.lb-portal-page .lb-eg-brand__name{font-size:26px;gap:6px}}

/* ---------------------------------------------------------------------------
   Shared header (every page template).
   Desktop: ONE row. Brand, primary links, search, language, cart, bell, account.
   Everything else (assistant, request, marketplace, location...) lives in "More"
   and the account menu. Phones: ONE row. Menu button, brand, cart, bell, account;
   links, language, location and display options live in the menu.
   Logical properties only, so /ar mirrors /en with no overrides.
   --------------------------------------------------------------------------- */
.lb-portal-page .lb-eg-header__inner{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;min-height:76px;padding-block:10px}
.lb-portal-page .lb-eg-brand{order:0;flex:0 0 auto;min-width:0;min-height:44px}
.lb-portal-page .lb-eg-nav{order:1;flex:1 1 auto;min-width:0;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:4px}
.lb-portal-page .lb-eg-header__tools{order:2;flex:0 0 auto;display:flex;align-items:center;gap:8px;margin:0;padding:0;border:0}
.lb-portal-page .lb-eg-header__quick-actions{order:3;flex:0 0 auto;display:flex;align-items:center;gap:6px;margin:0}
.lb-portal-page .lb-eg-menu-toggle{display:none}
.lb-portal-page .lb-eg-brand small{display:none}
.lb-portal-page .lb-eg-nav__utility{display:none}

/* Primary links: 44px targets, no underline-on-hover jitter. */
.lb-portal-page .lb-eg-nav>a,.lb-portal-page .lb-eg-nav>.lb-eg-header-popover>summary{display:inline-flex;align-items:center;gap:6px;min-height:44px;box-sizing:border-box;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--lbayk-dk-ink,var(--lb-ink,#162b3a));font-size:15px;font-weight:600;line-height:1.2;white-space:nowrap;text-decoration:none;cursor:pointer}
.lb-portal-page .lb-eg-nav>a:hover,.lb-portal-page .lb-eg-nav>.lb-eg-header-popover>summary:hover{background:var(--lbayk-dk-raised,#e6f4f2);text-decoration:none}
.lb-portal-page .lb-eg-nav>a[href$="/egypt/find"]{display:none}
.lb-portal-page .lb-eg-nav>a[aria-current=page],.lb-portal-page .lb-eg-nav>a.is-section{box-shadow:inset 0 -3px 0 var(--lbayk-dk-text-teal,#05635a);border-radius:10px 10px 0 0;color:var(--lbayk-dk-text-teal,#05635a)}
.lb-portal-page .lb-eg-nav .lb-eg-header-popover{position:relative}
.lb-portal-page .lb-eg-more-menu>summary::after{content:"";flex:0 0 auto;width:14px;height:14px;margin-inline-start:2px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .15s}
.lb-portal-page .lb-eg-more-menu[open]>summary::after{transform:rotate(180deg)}
/* Saved items: heart icon only on desktop (name stays for assistive tech); the count shows only when above zero. */
.lb-portal-page .lb-eg-favorites-menu>summary{position:relative;min-width:44px;justify-content:center;font-size:20px}
.lb-portal-page .lb-eg-favorites-menu .lb-eg-tool-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lb-portal-page .lb-eg-favorites-menu .lb-eg-header-badge{position:absolute;inset-block-start:-3px;inset-inline-end:-5px;min-width:18px;height:18px;font-size:11px;line-height:1}
.lb-portal-page .lb-eg-header-badge[hidden]{display:none}
/* More panel rows are full-height targets. */
.lb-portal-page .lb-eg-more-menu .lb-eg-header-popover__panel{gap:2px;width:min(300px,calc(100vw - 28px));padding:8px}
.lb-portal-page .lb-eg-more-menu .lb-eg-header-popover__panel>a,.lb-portal-page .lb-eg-more-menu .lb-eg-location{display:flex;align-items:center;min-height:44px;box-sizing:border-box;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--lbayk-dk-ink,var(--lb-ink,#162b3a));font:inherit;font-size:15px;font-weight:600;text-decoration:none;white-space:normal;text-align:start}
.lb-portal-page .lb-eg-more-menu .lb-eg-header-popover__panel>a:hover,.lb-portal-page .lb-eg-more-menu .lb-eg-location:hover{background:var(--lbayk-dk-raised,#e6f4f2);color:var(--lbayk-dk-text-teal,#05635a)}
.lb-portal-page .lb-eg-more-menu .lb-eg-location{gap:8px;border-block-start:1px solid var(--lbayk-dk-line,#d5e4de);border-radius:0 0 10px 10px;margin-block-start:4px}
.lb-portal-page .lb-eg-more-menu .lb-eg-country{margin:0;padding:6px 12px 2px;font-size:13px;color:var(--lbayk-dk-muted,#52636d)}

/* Search: one field-like button that opens the command search. */
.lb-portal-page .lb-eg-header__tools .lb-ux-command-trigger{display:inline-flex;align-items:center;gap:8px;min-width:200px;min-height:44px;box-sizing:border-box;padding:0 16px;border:1px solid var(--lbayk-dk-line,#9fb4ad);border-radius:999px;background:var(--lbayk-theme-surface,#fff);color:var(--lbayk-dk-muted,#52636d);font-size:14.5px;font-weight:600;text-align:start}
.lb-portal-page .lb-eg-header__tools .lb-ux-command-trigger:hover{border-color:var(--lb-teal,#087f72);color:var(--lbayk-dk-text-teal,#05635a)}
.lb-portal-page .lb-eg-header__tools .lb-ux-command-trigger kbd{display:none}
.lb-portal-page .lb-eg-header__tools .lb-eg-lang{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;box-sizing:border-box;padding:0 12px;border:1px solid transparent;border-radius:10px;color:var(--lbayk-dk-text-teal,#05635a);font-size:14.5px;font-weight:700;text-decoration:none;white-space:nowrap}
.lb-portal-page .lb-eg-header__tools .lb-eg-lang:hover{background:var(--lbayk-dk-raised,#e6f4f2)}

/* Cart, bell: 44px icon buttons; counts are corner badges. */
.lb-portal-page .lb-eg-header__quick-actions .lb-eg-header-popover>summary,.lb-portal-page .lb-eg-header__quick-actions .lb-eg-quick-icon{position:relative;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;gap:0;justify-content:center;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--lbayk-dk-ink,var(--lb-ink,#162b3a))}
.lb-portal-page .lb-eg-header__quick-actions .lb-eg-header-popover>summary:hover,.lb-portal-page .lb-eg-header__quick-actions .lb-eg-quick-icon:hover{background:var(--lbayk-dk-raised,#e6f4f2)}
.lb-portal-page .lb-eg-header__quick-actions .lb-eg-quick-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lb-portal-page .lb-eg-header__quick-actions .lb-eg-header-badge{position:absolute;inset-block-start:-3px;inset-inline-end:-5px;min-width:18px;height:18px;font-size:11px;line-height:1}

/* Account: avatar + name on desktop (outlined, so Sign in stays the one filled button for visitors). */
.lb-portal-page .lb-eg-header__quick-actions :is(.lb-eg-account-menu,.lb-eg-login-menu){position:relative}
.lb-portal-page .lb-eg-header__quick-actions .lb-eg-account-menu>summary{display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;min-height:44px;max-width:190px;padding-block:4px;padding-inline:4px 12px;border:1px solid var(--lbayk-dk-line,#9fb4ad);border-radius:999px;background:var(--lbayk-theme-surface,#fff);color:var(--lbayk-dk-ink,var(--lb-ink,#162b3a));font-size:14.5px;font-weight:700;cursor:pointer;list-style:none}
.lb-portal-page .lb-eg-header__quick-actions .lb-eg-account-menu>summary:hover{border-color:var(--lb-teal,#087f72)}
.lb-portal-page .lb-eg-account-menu__avatar{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;overflow:hidden;background:var(--lb-teal-dark,#05635a);color:#fff;font-size:15px;font-weight:800}
.lb-portal-page .lb-eg-account-menu__avatar img{display:block;width:100%;height:100%;object-fit:cover}
.lb-portal-page .lb-eg-header__quick-actions .lb-eg-login-menu>summary{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px;padding:0 18px;border-radius:12px;background:var(--lb-teal-dark,#05635a);border:1px solid var(--lb-teal-dark,#05635a);color:#fff;font-size:14.5px;font-weight:700;white-space:nowrap;cursor:pointer;list-style:none}
.lb-portal-page .lb-eg-header__quick-actions .lb-eg-login-menu>summary:hover{background:#04473f}
.lb-portal-page .lb-eg-login__icon{display:none}
/* Menu panels (account, sign-in): grouped, 44px rows. */
.lb-portal-page .lb-eg-account-menu__panel{width:min(300px,calc(100vw - 32px));min-width:0;max-height:calc(100dvh - 110px);overflow-y:auto;padding:8px;gap:0}
.lb-portal-page .lb-eg-account-menu__panel a,.lb-portal-page .lb-eg-login-menu__panel a{display:flex;align-items:center;min-height:44px;box-sizing:border-box;padding:0 12px;font-size:15px}
.lb-portal-page .lb-eg-account-menu__who{margin:0;padding:8px 12px 4px;font-size:13px;font-weight:700;color:var(--lbayk-dk-muted,#52636d);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb-portal-page .lb-eg-account-menu__group{display:grid;padding-block:6px;border-block-start:1px solid var(--lbayk-dk-line,#d5e4de)}
.lb-portal-page .lb-eg-account-menu__who+.lb-eg-account-menu__group{border-block-start:0}
.lb-portal-page .lb-eg-account-menu__label{margin:0;padding:6px 12px 2px;font-size:12.5px;font-weight:800;letter-spacing:0;color:var(--lbayk-dk-muted,#52636d)}
.lb-portal-page .lb-eg-account-menu__group--primary a{background:var(--lbayk-dk-raised,#e6f4f2);color:var(--lbayk-dk-text-teal,#05635a);margin-block-end:4px}
.lb-portal-page .lb-eg-account-menu__group--exit{padding-block-end:0}
.lb-portal-page .lb-eg-account-menu__panel .lb-eg-account-menu__logout,.lb-portal-page .lb-eg-account-menu__panel .lb-eg-account-menu__delete{margin-top:0;border-top:0;border-radius:9px}
.lb-portal-page .lb-eg-login-menu__panel{width:min(280px,calc(100vw - 32px))}
.lb-portal-page .lb-eg-login-menu__panel .lb-eg-login-menu__primary{background:var(--lbayk-dk-raised,#e6f4f2);color:var(--lbayk-dk-text-teal,#05635a);font-weight:700}
.lb-portal-page .lb-eg-header__quick-actions :is(summary,button):focus-visible{outline:3px solid var(--lb-focus,#175cd3);outline-offset:2px}

/* Narrower desktops: the search shrinks to an icon, the account to its avatar, so the row never wraps. */
@media(min-width:1001px) and (max-width:1240px){
.lb-portal-page .lb-eg-header__tools .lb-ux-command-trigger{min-width:44px;padding:0 12px}
.lb-portal-page .lb-eg-header__tools .lb-ux-command-trigger__label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lb-portal-page .lb-eg-account-menu__name{display:none}
.lb-portal-page .lb-eg-header__quick-actions .lb-eg-account-menu>summary{padding-inline:4px 10px}
.lb-portal-page .lb-eg-nav>a,.lb-portal-page .lb-eg-nav>.lb-eg-header-popover>summary{padding-inline:9px;font-size:14.5px}
.lb-portal-page .lb-eg-header__inner{gap:8px}
}
.lb-portal-page .lb-eg-account-menu__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.lb-home-applications{padding-block:26px;border-top:1px solid var(--lb-line)}
.lb-home-applications .lb-portal-apps{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.lb-home-applications .lb-portal-app-card h3{font-size:20px;margin:0 0 8px}
.lb-home-applications .lb-portal-app-card h3 a{color:inherit}

/* ---- Phones and small tablets: one row; menu button first. ---- */
@media(max-width:1000px){
.lb-portal-page .lb-eg-header__inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"menu brand actions";grid-template-rows:auto;align-items:center;gap:6px;min-height:64px;padding-block:8px}
.lb-portal-page .lb-eg-menu-toggle{display:inline-flex;grid-area:menu;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;border-radius:12px}
.lb-portal-page .lb-eg-brand{grid-area:brand;justify-self:start;order:0;overflow:hidden;min-width:0}
.lb-portal-page .lb-eg-header__quick-actions{grid-area:actions;justify-self:end;order:0;gap:0}
.lb-portal-page .lb-eg-header__tools{display:none}
.lb-portal-page .lb-eg-nav{order:0;display:none}
.lb-portal-page .lb-eg-nav.is-open{display:flex}
.lb-portal-page .lb-eg-brand small{display:none}
/* The menu drawer: full-width rows, 48px each. */
.lb-portal-page .lb-eg-nav{flex-direction:column;align-items:stretch;gap:0;max-height:calc(100dvh - 72px);overflow-y:auto}
.lb-portal-page .lb-eg-nav>a,.lb-portal-page .lb-eg-nav>.lb-eg-header-popover>summary{width:100%;min-height:48px;padding:0 4px;border-radius:0;border-bottom:1px solid var(--lbayk-dk-line,#edf3f1);font-size:17px;box-shadow:none}
.lb-portal-page .lb-eg-nav>a[href$="/egypt/find"]{display:inline-flex}
.lb-portal-page .lb-eg-nav>a[aria-current=page],.lb-portal-page .lb-eg-nav>a.is-section{box-shadow:inset 4px 0 0 var(--lbayk-dk-text-teal,#05635a);padding-inline-start:12px;border-radius:0}
.lb-portal-page .lb-eg-nav .lb-eg-header-popover{width:100%}
.lb-portal-page .lb-eg-favorites-menu>summary{justify-content:flex-start;font-size:17px;gap:10px}
.lb-portal-page .lb-eg-favorites-menu .lb-eg-tool-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
.lb-portal-page .lb-eg-favorites-menu .lb-eg-header-badge{position:static;margin-inline-start:auto}
.lb-portal-page .lb-eg-more-menu>summary::after{margin-inline-start:auto}
.lb-portal-page .lb-eg-nav .lb-eg-header-popover__panel{position:static;width:auto;box-sizing:border-box;margin-block:8px;box-shadow:none}
.lb-portal-page .lb-eg-more-menu .lb-eg-header-popover__panel{width:auto}
.lb-portal-page .lb-eg-more-menu .lb-eg-location--desktop{display:none}
.lb-portal-page .lb-eg-nav__utility{display:flex;flex-wrap:wrap;gap:8px;padding-block:14px 4px}
.lb-portal-page .lb-eg-nav__utility>a,.lb-portal-page .lb-eg-nav__utility>.lb-eg-location,.lb-portal-page .lb-eg-nav__tool{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;box-sizing:border-box;padding:0 16px;border:1px solid var(--lbayk-dk-line,#9fb4ad);border-radius:999px;background:var(--lbayk-theme-surface,#fff);color:var(--lbayk-dk-ink,var(--lb-ink,#162b3a));font:inherit;font-size:15px;font-weight:700;text-decoration:none;cursor:pointer}
.lb-portal-page .lb-eg-nav__utility>.lb-eg-location--mobile{display:inline-flex;width:auto;height:auto;min-height:44px;margin:0;flex:0 0 auto}
.lb-portal-page .lb-eg-nav__utility .lb-eg-location--mobile [data-lb-location-label]{position:static;display:inline;width:auto;height:auto;overflow:visible;clip:auto}
.lb-portal-page .lb-eg-nav__tool{display:none}
/* Cart, bell, account panels open as full-width sheets under the header, never off-screen. */
.lb-portal-page .lb-eg-header__quick-actions :is(.lb-eg-header-popover,.lb-eg-account-menu,.lb-eg-login-menu){position:static}
.lb-portal-page .lb-eg-header__quick-actions :is(.lb-eg-header-popover__panel,.lb-eg-account-menu__panel,.lb-eg-login-menu__panel){position:absolute;inset-inline:12px;inset-block-start:calc(100% + 4px);width:auto;max-width:none;box-sizing:border-box}
.lb-portal-page .lb-eg-header__quick-actions .lb-eg-account-menu>summary{width:44px;max-width:none;padding:4px;justify-content:center;border-radius:50%;gap:0}
.lb-portal-page .lb-eg-account-menu__name,.lb-portal-page .lb-eg-account-menu__chevron{display:none}
.lb-portal-page .lb-eg-header__quick-actions .lb-eg-login-menu>summary{width:44px;padding:0;border-radius:50%;background:transparent;border:1px solid var(--lbayk-dk-line,#9fb4ad);color:var(--lbayk-dk-ink,var(--lb-ink,#162b3a))}
.lb-portal-page .lb-eg-login__icon{display:block}
.lb-portal-page .lb-eg-login__text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lb-home-applications .lb-portal-apps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
.lb-portal-page .lb-eg-header__inner{gap:4px}
.lb-portal-page .lb-eg-brand{gap:7px}
.lb-portal-page .lb-eg-brand__mark{width:38px;height:38px;border-radius:11px}
.lb-portal-page .lb-eg-brand__mark svg{width:29px;height:29px}
.lb-portal-page .lb-eg-brand__name{flex-direction:column;align-items:flex-start;gap:2px;font-size:23px}
.lb-portal-page .lb-eg-brand__name .lb-trial-badge{font-size:12px;padding:0 6px;margin:0;line-height:1.5}
}
@media(max-width:340px){.lb-portal-page .lb-eg-brand__text{display:none}}
@media(max-width:760px){
/* Display options live in the menu on phones instead of floating over the page. */
.lb-portal-page .lb-eg-nav__tool{display:inline-flex}
}
@media(max-width:640px){
.lb-home-applications .lb-portal-apps{display:grid;grid-template-columns:1fr}
.lb-home-applications .lb-portal-apps>.lb-portal-card{margin-bottom:0}
}

/* ---- Floating helpers on phones (C19) ----
   Theme, accessibility and back-to-top move into the menu; the assistant stays as ONE small button at the
   end side, clear of the page content (the page keeps room for it), and is not shown on sign-in/checkout. */
@media(max-width:760px){
/* Room for the floating assistant is added inside the footer (lbayk-egypt.css), so no white strip shows under it. */
html body.lb-portal-page .so-floating-actions{display:none}
html body.lb-portal-page .so-chat{left:auto;right:auto;inset-inline-end:12px;inset-block-end:max(12px,env(safe-area-inset-bottom))}
html body.lb-portal-page .so-chat__trigger{width:48px;height:48px;box-shadow:0 3px 12px rgba(22,43,58,.28)}
html body.lb-portal-page .so-chat__panel{position:fixed;left:auto;right:auto;inset-inline:12px;inset-block-end:76px;width:auto;max-height:calc(100dvh - 96px);height:auto;min-height:20rem}
html body.lb-portal-page:has(.lb-auth-page,.so-checkout) .so-chat{display:none}
/* Sign-in has no menu: theme and accessibility stay as a small row at the end of the screen, under the form. */
html body.lb-portal-page:has(.lb-auth-page) .so-floating-actions{display:flex;flex-direction:row;gap:8px;left:auto;right:auto;inset-inline-end:12px;inset-block-end:12px}
html body.lb-portal-page:has(.lb-auth-page) .so-floating-actions__btn--top{display:none}
}
/* Nothing in the shell may widen the page (closed menus, dropdowns). */
.lb-portal-page{overflow-x:clip}
