/* NoorVista 3.0.199 — isolated mobile public topbar, navbar and drawer */

.nv199-mobile-shell,
.nv199-mobile-overlay,
.nv199-mobile-drawer {
  display: none;
}

@media (max-width: 920px) {
  html.nv199-menu-open,
  body.nv199-menu-open {
    overflow: hidden !important;
  }

  body:not([data-panel-role]) > .topbar.nv-static-topbar-shell,
  body:not([data-panel-role]) > header.navbar {
    display: none !important;
  }

  body:not([data-panel-role]) .nv199-mobile-shell {
    position: sticky;
    top: 0;
    z-index: 2147482000;
    display: block;
    width: 100%;
    direction: rtl;
    background: #fff;
    border-bottom: 1px solid #dceaf1;
    box-shadow: 0 10px 28px rgba(8, 47, 73, 0.08);
  }

  body:not([data-panel-role]) .nv199-mobile-topbar {
    min-height: 48px;
    padding: 7px 12px;
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto minmax(44px, 1fr);
    grid-template-areas: "address socials phone";
    align-items: center;
    gap: 8px;
    direction: rtl;
    overflow: hidden;
    background: linear-gradient(90deg, #08435d 0%, #0b5872 55%, #0d7890 100%);
  }

  body:not([data-panel-role]) .nv199-mobile-address {
    grid-area: address;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
  }

  body:not([data-panel-role]) .nv199-mobile-address span {
    min-width: 0;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not([data-panel-role]) .nv199-mobile-address svg,
  body:not([data-panel-role]) .nv199-mobile-phone svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: currentColor;
  }

  body:not([data-panel-role]) .nv199-mobile-socials {
    grid-area: socials;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    direction: rtl;
  }

  body:not([data-panel-role]) .nv199-mobile-socials a {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }

  body:not([data-panel-role]) .nv199-mobile-socials img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  body:not([data-panel-role]) .nv199-mobile-phone {
    grid-area: phone;
    justify-self: end;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
  }

  body:not([data-panel-role]) .nv199-mobile-navbar {
    min-height: 70px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas: "brand toggle";
    align-items: center;
    gap: 12px;
    background: #fff;
    direction: rtl;
  }

  body:not([data-panel-role]) .nv199-mobile-brand {
    grid-area: brand;
    justify-self: start;
    min-width: 0;
    max-width: calc(100vw - 82px);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    text-decoration: none;
  }

  body:not([data-panel-role]) .nv199-mobile-brand img {
    display: block;
    width: auto;
    max-width: min(210px, 64vw);
    height: 48px;
    object-fit: contain;
    object-position: right center;
  }

  body:not([data-panel-role]) .nv199-mobile-toggle {
    grid-area: toggle;
    justify-self: end;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #d4e8f1;
    border-radius: 14px;
    color: #0b5872;
    background: #f2fbfe;
    box-shadow: none;
    cursor: pointer;
  }

  body:not([data-panel-role]) .nv199-mobile-toggle svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
  }

  body:not([data-panel-role]) .nv199-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482001;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(4, 31, 48, 0.5);
    backdrop-filter: blur(3px);
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  body.nv199-menu-open:not([data-panel-role]) .nv199-mobile-overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  body:not([data-panel-role]) .nv199-mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2147482002;
    width: min(88vw, 380px);
    display: flex;
    flex-direction: column;
    direction: rtl;
    color: #12324d;
    background: #fff;
    border-right: 1px solid #dceaf2;
    box-shadow: 24px 0 70px rgba(4, 31, 48, 0.25);
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s ease, visibility 0.24s ease;
    overflow: hidden;
  }

  body.nv199-menu-open:not([data-panel-role]) .nv199-mobile-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  body:not([data-panel-role]) .nv199-drawer-head {
    min-height: 72px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e3eef4;
    background: linear-gradient(180deg, #fff 0%, #f8fcfe 100%);
  }

  body:not([data-panel-role]) .nv199-drawer-head strong {
    color: #10314f !important;
    font-size: 1.05rem;
    font-weight: 950;
  }

  body:not([data-panel-role]) .nv199-drawer-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #d9e9f1;
    border-radius: 13px;
    color: #0b5872;
    background: #f3fbfe;
    cursor: pointer;
  }

  body:not([data-panel-role]) .nv199-drawer-close svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
  }

  body:not([data-panel-role]) .nv199-drawer-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 14px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body:not([data-panel-role]) .nv199-mobile-menu,
  body:not([data-panel-role]) .nv199-mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body:not([data-panel-role]) .nv199-mobile-menu > li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #edf4f7;
  }

  body:not([data-panel-role]) .nv199-mobile-menu > li:last-child {
    border-bottom: 0;
  }

  body:not([data-panel-role]) .nv199-mobile-menu > li > a,
  body:not([data-panel-role]) .nv199-mobile-menu > li > button {
    width: 100%;
    min-height: 50px;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    direction: rtl;
    text-align: right;
    color: #12324d !important;
    background: transparent;
    border: 0;
    border-radius: 13px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
  }

  body:not([data-panel-role]) .nv199-mobile-menu > li > a:hover,
  body:not([data-panel-role]) .nv199-mobile-menu > li > a.active,
  body:not([data-panel-role]) .nv199-mobile-menu > li > button:hover {
    color: #087e98 !important;
    background: #eef9fd;
  }

  body:not([data-panel-role]) .nv199-mobile-menu .nv199-chevron {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-left: 2px solid #71899a;
    border-bottom: 2px solid #71899a;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
  }

  body:not([data-panel-role]) .nv199-mobile-menu li.is-expanded > button .nv199-chevron {
    transform: rotate(135deg);
  }

  body:not([data-panel-role]) .nv199-mobile-submenu {
    display: none;
    margin: 0 0 12px !important;
    padding: 12px !important;
    border: 1px solid #e0edf3;
    border-radius: 16px;
    background: #f7fbfd;
  }

  body:not([data-panel-role]) .nv199-mobile-menu li.is-expanded > .nv199-mobile-submenu {
    display: block;
  }

  body:not([data-panel-role]) .nv199-mobile-submenu strong {
    display: block;
    margin: 8px 2px 7px;
    color: #0d6079 !important;
    font-size: 0.84rem;
    font-weight: 950;
  }

  body:not([data-panel-role]) .nv199-mobile-submenu a {
    display: block;
    margin: 0 0 5px;
    padding: 10px 11px;
    border-radius: 11px;
    color: #496579 !important;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.7;
    text-decoration: none;
  }

  body:not([data-panel-role]) .nv199-mobile-submenu a:hover {
    color: #087e98 !important;
    background: #eaf8fd;
  }

  body:not([data-panel-role]) .nv199-drawer-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  body:not([data-panel-role]) .nv199-drawer-actions a,
  body:not([data-panel-role]) .nv199-drawer-actions button {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    border: 1px solid #cfe2eb;
    color: #12324d !important;
    background: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
  }

  body:not([data-panel-role]) .nv199-drawer-actions .is-primary {
    color: #fff !important;
    border-color: transparent;
    background: linear-gradient(135deg, #149fc1, #17b7b6);
  }
}

@media (max-width: 360px) {
  body:not([data-panel-role]) .nv199-mobile-topbar {
    padding-inline: 8px;
    grid-template-columns: minmax(58px, 1fr) auto minmax(38px, 1fr);
    gap: 5px;
  }

  body:not([data-panel-role]) .nv199-mobile-socials {
    gap: 5px;
  }

  body:not([data-panel-role]) .nv199-mobile-socials a {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  body:not([data-panel-role]) .nv199-mobile-address {
    font-size: 0.72rem;
  }

  body:not([data-panel-role]) .nv199-mobile-address span {
    max-width: 58px;
  }

  body:not([data-panel-role]) .nv199-mobile-brand img {
    max-width: 60vw;
  }
}
