:root {
  --primary: #0066ff;
  --secondary: #ed6234;
  --blck: #424242;
  --gray: #adadad;
}

#header {
  direction: rtl;
  font-family: dana, "dana", Tahoma, sans-serif;
}

#header * {
  box-sizing: border-box;
}

#header span {
  font-weight: inherit;
}

#header .orange {
  color: var(--secondary);
}

#header .blue {
  color: var(--primary);
}

#header strong {
  font-weight: bold;
}

#header button:focus {
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
  outline: none;
}

#header button:focus:not(:focus-visible) {
  outline: 0;
  box-shadow: none;
}

#header button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hide legacy Xtra header so only header-main is visible */
#site_header.page_header,
#site_header {
  display: none !important;
}

/* Prevent unexpected theme background behind search icon */
#header #search-btn,
#header #search-btn svg,
#header #search-box .holder svg,
#header svg use[href="#search-ic"] {
  background: transparent !important;
  background-color: transparent !important;
}

/* Prevent parent-theme forced 48x48 on desktop logo anchor */
#header .logo > a.desktop {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

#header .logo > a.desktop img {
  width: 150px !important;
  height: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

.petboom-no-scroll,
body.petboom-no-scroll {
  overflow: hidden !important;
}

@media (max-width: 1026px) {
  body.petboom-mobile-drawer-open .xtra-fixed-mobile-nav,
  html.petboom-mobile-drawer-open .xtra-fixed-mobile-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #header .account-wrapper .account-dropdown.open {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Neutralize theme rule: .logo > a, .logo > h1, .logo h2 { width/height:48px !important; } */
  #header .logo > a,
  #header .logo > h1,
  #header .logo h2 {
    width: auto !important;
    height: auto !important;
  }
  #header .logo > a.desktop {
    display: none !important;
  }
  #header .logo > a.mobile {
    display: block !important;
  }

  /* Keep drawer opening below the visible mobile header row */

  /* Remove any inherited button/chrome background from hamburger */
  #header #hamburger,
  #header #hamburger:hover,
  #header #hamburger:focus,
  #header #hamburger:active,
  #header #hamburger svg {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Prevent logo from being forced too small by global rules */

}

@media (min-width: 1027px) {
  #header .account-wrapper.is-logged-out .account-dropdown {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #header .account-wrapper.is-logged-out #accoount-btn .chevron {
    display: none !important;
  }

  #header .account-wrapper.is-logged-out a#accoount-btn {
    text-decoration: none;
  }

  #header .logo > a.desktop {
    display: block !important;
  }
  #header .logo > a.mobile {
    display: none !important;
  }
}

/* Desktop submenu parents should not inherit theme link styles */
#header .desktop-nav .menu-label {
  cursor: pointer;
}

/* Keep nested desktop submenus aligned */
#header .desktop-nav .submenu .submenu {
  top: 16px;
  right: calc(100% - 10px);
}

#header #desktop-menu > li:last-child .submenu .submenu,
#header #more-li .submenu .submenu {
  right: initial;
  left: calc(100% - 10px);
}

/* Account dropdown - self-contained styles (do not rely only on style.css) */
#header .account-wrapper {
  position: relative;
  flex-shrink: 0;
  z-index: 1200;
}

#header .account-logout-overlay {
  /* z-index: 1300; */
}

#header button#accoount-btn,
#header a#accoount-btn {
  border: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  width: auto;
}

@media (min-width: 1027px) {
  #header button#accoount-btn,
  #header a#accoount-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 22px;
    border-radius: 10px;
    background-color: var(--primary);
  }

  #header button#accoount-btn .txt,
  #header a#accoount-btn .txt {
    font-weight: bold;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
  }

  #header button#accoount-btn svg,
  #header a#accoount-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
  }

  #header button#accoount-btn .chevron,
  #header a#accoount-btn .chevron {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 1026px) {
  #header button#accoount-btn,
  #header a#accoount-btn {
    height: 48px;
    width: 48px;
    padding: initial;
    justify-content: center;
    background: none;
  }

  #header button#accoount-btn .txt,
  #header a#accoount-btn .txt {
    display: none;
  }

  #header button#accoount-btn svg,
  #header a#accoount-btn svg {
    width: 32px;
    height: 32px;
    stroke: #414a53;
  }
}

#header .account-wrapper .account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  max-width: min(480px, calc(100vw - 24px));
  width: max-content;
  background: #fafafa;
  border-bottom: 0.5px solid rgba(163, 169, 176, 0.15);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(163, 169, 176, 0.15);
  z-index: 1200;
  overflow: hidden;
  display: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

#header .account-wrapper .account-dropdown.open {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

@media (max-width: 1026px) {
  #header .account-wrapper .account-dropdown.open {
    position: fixed;
    top: calc(var(--petboom-mobile-drawer-top, 56px) - 4px);
    left: 12px;
    right: 12px;
    min-width: 0;
    width: auto;
    z-index: 1300;
  }
}

#header .account-wrapper .account-dropdown ul {
  list-style: none !important;
  padding: 8px !important;
  margin: 0 !important;
}

#header .account-wrapper .account-dropdown li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#header .account-wrapper .account-dropdown a,
#header .account-wrapper .account-dropdown .logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px !important;
  font-weight: normal !important;
  font-family: dana, "dana", sans-serif !important;
  line-height: normal !important;
  color: #424242 !important;
  white-space: nowrap;
  width: auto;
  background: none !important;
  border: none !important;
  cursor: pointer;
  text-align: right;
  text-decoration: none;
  box-shadow: none !important;
}

#header .account-wrapper .account-dropdown a > span,
#header .account-wrapper .account-dropdown .logout-btn span {
  font-size: inherit !important;
  font-weight: inherit !important;
  font-family: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

#header .account-wrapper .account-dropdown a:hover,
#header .account-wrapper .account-dropdown .logout-btn:hover {
  background-color: #e5efff !important;
  color: var(--primary) !important;
}

#header .account-wrapper .account-dropdown .logout-btn,
#header .account-wrapper .account-dropdown .logout-btn span {
  color: #e02424 !important;
}

#header .account-wrapper .account-dropdown .logout-btn {
  width: 100%;
}

#header .account-wrapper .account-dropdown .logout-btn:hover,
#header .account-wrapper .account-dropdown .logout-btn:hover span {
  background-color: #fdecec !important;
  color: #e02424 !important;
}

#header .account-wrapper .account-dropdown .logout-btn svg {
  stroke: #e02424 !important;
  flex-shrink: 0;
}

#header .account-wrapper .account-dropdown .logout-btn:hover svg {
  stroke: #e02424 !important;
}

#header .account-wrapper .account-dropdown .wallet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

#header .account-wrapper .account-dropdown .wallet-item > span:first-child {
  flex-shrink: 0;
}

#header .account-wrapper .account-dropdown .wallet-item .balance,
#header .account-wrapper .account-dropdown .wallet-item .balance span {
  font-weight: bold;
  margin-right: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px !important;
  font-family: dana, "dana", sans-serif !important;
  line-height: normal !important;
  color: var(--primary) !important;
  background-color: #e5efff !important;
  padding: 4px 8px;
  border-radius: 100vmax;
  white-space: nowrap;
}

#header .account-wrapper .account-dropdown .wallet-item .balance-amount {
  white-space: nowrap;
}

/* Mobile drawer auth rows are toggled from JS */
#header #mobile-menu,
#header #mobile-menu a,
#header #mobile-menu button,
#header #mobile-menu .menu-text,
#header #mobile-menu .balance-badge,
#header #mobile-menu .balance-badge span,
#header #mobile-menu .cta .txt {
  font-family: dana, "dana", Tahoma, sans-serif !important;
  line-height: normal !important;
  letter-spacing: normal !important;
}

#header #mobile-menu > li > a,
#header #mobile-menu > li > button,
#header #mobile-menu > li.auth-only > a {
  font-size: 14px !important;
  font-weight: bold !important;
  color: #424242 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

#header #mobile-menu > li > a .menu-text,
#header #mobile-menu > li > button .menu-text,
#header #mobile-menu > li.auth-only > a .menu-text {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
}

#header #mobile-menu .has-children > ul a,
#header #mobile-menu ul ul li a {
  font-size: 13px !important;
  font-weight: normal !important;
  color: #424242 !important;
  background: none !important;
  text-decoration: none !important;
}

#header #mobile-menu .cta a,
#header #mobile-menu .cta a .txt {
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: normal !important;
}

#header #mobile-menu li svg {
  flex-shrink: 0;
}

#header .mobile-menu .balance-badge {
  /* margin-right: auto; */
  font-size: 11px !important;
  color: var(--primary) !important;
  background-color: #e5efff !important;
  padding: 2px 8px;
  border-radius: 100vmax;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#header .mobile-menu .balance-badge .balance-amount {
  white-space: nowrap;
  color: var(--primary) !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

#header #mobile-menu a:has(.balance-badge) {
  height: auto;
  min-height: 48px;
  flex-wrap: wrap;
  row-gap: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
}

#header #mobile-menu .logout-item button,
#header #mobile-menu #mobile-logout-btn {
  color: #e02424 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-family: dana, "dana", sans-serif !important;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: normal !important;
}

#header #mobile-menu .logout-item button .menu-text,
#header #mobile-menu #mobile-logout-btn .menu-text {
  color: #e02424 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

#header #mobile-menu .logout-item button svg,
#header #mobile-menu #mobile-logout-btn svg {
  stroke: #e02424 !important;
}

/* VOS panels (vet-panel, user-panel, multi-form): show PetBoom header without breaking plugin UI */
body.ptb-vos-flow #site_header.page_header,
body.ptb-vos-flow #site_header {
  display: none !important;
}

body.ptb-vos-flow .xtra-fixed-mobile-nav {
  display: none !important;
}

body.ptb-vos-flow #header {
  position: relative;
  z-index: 1100;
  isolation: isolate;
}

body.ptb-vos-flow #header .mobile-drawer.open {
  z-index: 10050;
}

body.ptb-vos-flow #vos-loading-overlay,
body.ptb-vos-flow #loading {
  z-index: 100000 !important;
}

body.ptb-vos-flow main#root {
  position: relative;
  z-index: 1;
}

body.ptb-vos-flow main.container .step-progress-bar {
  top: var(--ptb-header-height, 0px);
}

body.ptb-vos-flow main.container .form-step-nav {
  z-index: 90;
}

body.ptb-vos-flow #root .modals-sec dialog,
body.ptb-vos-flow #root .modal,
body.ptb-vos-flow main.container dialog {
  z-index: 10060;
}

/* VOS checkout payment page */
body.ptb-vos-flow form.checkout .main_content {
  min-height: auto;
}

body.ptb-vos-flow form.checkout #payment.container {
  max-width: 100%;
  padding: 0;
}
