/* Public storefront header: compact, aligned controls on mobile. */
.ft-mobile-header .ft-register-short {
  display: none;
}

@media (max-width: 991px) {
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header {
    min-height: 64px;
    padding: 12px 0;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px auto 36px;
    align-items: center;
    column-gap: 8px;
    row-gap: 0;
    padding-left: 13px;
    padding-right: 13px;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .navbar-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 36px;
    height: 36px;
    margin: 0;
    gap: 0;
    font-size: 22px !important;
    line-height: 1;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .navbar-brand .brand-logo {
    flex: none;
    width: 30px;
    height: 30px;
    margin-right: 5px !important;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .navbar-brand > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .lang-switch {
    grid-column: 2;
    grid-row: 1;
    margin: 0 !important;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .lang-switch__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 36px;
    padding: 0;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    line-height: 1;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .lang-switch__btn > i:first-child {
    margin: 0;
    font-size: 18px;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .lang-switch__code,
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .lang-switch__caret {
    display: none;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .user-login-box,
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .user-info-box {
    grid-column: 3;
    grid-row: 1;
    margin: 0 !important;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .user-login-box {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .user-login-box .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px !important;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .user-login-box .nav-icon {
    display: none;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .navbar-toggler {
    grid-column: 4;
    grid-row: 1;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 5px;
    border: 0;
    border-radius: 8px;
    line-height: 1;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .navbar-toggler-icon {
    width: 24px;
    height: 24px;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .navbar-collapse {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header #ft-storefront-search {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .lang-switch__btn:focus-visible,
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .navbar-toggler:focus-visible {
    outline: 2px solid #009e80;
    outline-offset: 2px;
  }
}

@media (max-width: 575px) {
  .ft-mobile-header .ft-register-full {
    display: none;
  }
  .ft-mobile-header .ft-register-short {
    display: inline;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .user-info-box {
    max-width: 98px;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header #userDropdown {
    min-height: 36px;
    max-width: 98px;
    padding: 0 4px;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header #user-avatar {
    width: 26px !important;
    height: 26px !important;
    margin-right: 5px !important;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header #username {
    max-width: 36px;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header #user-balance {
    display: none;
  }
}

@media (max-width: 359px) {
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header > .container {
    column-gap: 4px;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .navbar-brand {
    font-size: 19px !important;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .navbar-brand .brand-logo {
    width: 24px;
    height: 24px;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .user-login-box .btn {
    min-width: 42px;
    padding: 0 8px;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header .user-info-box,
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header #userDropdown {
    max-width: 90px;
  }
  :root body.storefront-body .navbar.navbar-acg.ft-mobile-header #username {
    max-width: 30px;
  }
}
