/* Keep the header's separator inside the menu card and reserve space for the fixed announcement icon. */
html[data-bk-theme] body.bk-customer-v202 .topMenu {
  border-bottom: 0 !important;
}
html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .duuru {
  gap: 8px;
}
html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .duuru-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
}
html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .duuru-text {
  flex: 1 1 0;
  width: auto !important;
  padding-left: 0;
}

/* Shared customer header: match the homepage's 1240px container / 1210px content. */
html[data-bk-theme] body.bk-customer-v202 .topMenu > .container {
  width: 100% !important;
  max-width: 1240px !important;
  padding-inline: 15px !important;
}
html[data-bk-theme] body.bk-customer-v202 .topMenu > .container > nav > .topRow > .ml-sm-0 {
  flex: 0 0 calc(100% - 30px) !important;
  width: calc(100% - 30px) !important;
  max-width: calc(100% - 30px) !important;
  margin-inline: 15px !important;
  min-width: 0;
}
html[data-bk-theme] body.bk-customer-v202 .topMenu #mainMenu {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}
html[data-bk-theme] body.bk-customer-v202 .site-notice-bar > .container {
  max-width: 1210px !important;
}
html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .guest-register {
  background: var(--bk-surface, #101c2f) !important;
  color: var(--bk-text, #e8eff8) !important;
  box-shadow: none !important;
}
html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .guest-cart {
  background: #ff8a1f !important;
  border-color: #ff8a1f !important;
  color: #111 !important;
}
html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .guest-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: rgba(17,17,17,.14);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* Keep the existing toggle, forms, language links and dropdowns. Only their layout changes. */
@media (max-width: 768px) {
  html[data-bk-theme] body.bk-customer-v202 .topMenu > .container > nav {
    padding-block: 8px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu .topRow {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0 !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu .topRow > div:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex !important;
    align-items: center;
    width: 128px;
    margin: 0 !important;
    justify-self: start;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu #logo {
    width: 128px !important;
    height: 46px !important;
    margin: 0 !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu #logo .site-logo {
    max-width: 128px !important;
    max-height: 46px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu .header-search-wrap {
    display: none !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu > .container > nav > .topRow > .ml-sm-0 {
    display: contents !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu #mobileMenuAnchor {
    grid-column: 1;
    grid-row: 2;
    width: 84px !important;
    min-width: 0 !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    gap: 6px !important;
    box-shadow: none !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu .mobile-search-wrap {
    display: block !important;
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin: 0 !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu .mobile-search-wrap .header-search-form {
    height: 44px !important;
    border-radius: 12px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu .mobile-search-wrap .header-search-form input {
    min-width: 0 !important;
    padding: 0 8px !important;
    font-size: 16px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu .mobile-search-wrap .header-search-form > i {
    display: none;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu .mobile-search-wrap .header-search-form button {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu .mobile-lang-switcher {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;
    display: flex !important;
    align-items: center;
    gap: 4px !important;
    margin: 0 !important;
    width: max-content;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu .mobile-lang-switcher > :is(a, button) {
    width: 34px !important;
    min-width: 34px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu #mainMenu {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0 !important;
    padding: 8px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .topMenu #mainMenu .menu-element {
    padding: 10px !important;
    margin-bottom: 3px !important;
    min-height: 44px;
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar {
    padding-block: 4px 8px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar > .container {
    padding: 8px 10px !important;
    border-radius: 14px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .duuru {
    min-height: 18px;
    margin-bottom: 7px !important;
    padding-left: 0 !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .newsticker li {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .guest-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, .75fr) minmax(0, 1fr);
    gap: 6px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .guest-btn {
    width: 100%;
    height: 42px !important;
    min-width: 0 !important;
    padding: 0 6px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center;
    gap: 4px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .guest-cart > .ion {
    display: none;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .modern-user-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100%;
    gap: 8px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .modern-user-actions > .dropdown {
    flex: 1 1 auto;
    min-width: 0 !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar :is(.modern-user-btn, .modern-cart-btn) {
    min-height: 42px !important;
    height: auto !important;
    padding: 6px 9px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    gap: 6px !important;
    box-shadow: none !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .modern-user-btn {
    width: 100% !important;
    justify-content: flex-start;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .modern-cart-btn {
    flex: 0 0 auto;
    width: auto !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .modern-user-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 24px !important;
    flex: 0 0 26px !important;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .nav-wallet-summary {
    min-width: 0;
    white-space: normal;
  }
  html[data-bk-theme] body.bk-customer-v202 .site-notice-bar .nav-wallet-values {
    display: flex;
    flex-wrap: wrap;
    font-size: 9px !important;
    gap: 2px 5px;
  }
}
