/* One clear section switcher replaces the tall mobile account navigation. */
body.storefront.account-page .account-mobile-section-toggle {
  display: none;
}

@media (max-width: 600px) {
  body.storefront.account-page.account-is-authenticated .account-sidebar {
    padding-bottom: 20px;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 68px;
    padding: 10px 12px;
    border: 1px solid #dce5ef;
    border-radius: 17px;
    background: linear-gradient(120deg, #fff 0%, #fff 62%, #f9f4f7 100%);
    box-shadow: 0 10px 26px #172d490e;
    color: #172c47;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-toggle::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #c9103a;
    pointer-events: none;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-toggle:hover {
    border-color: #efc7d1;
    box-shadow: 0 13px 29px #172d4915;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-toggle:focus-visible {
    outline: 3px solid #e4617f;
    outline-offset: 3px;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-icon,
  body.storefront.account-page.account-is-authenticated .account-mobile-section-chevron {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-icon {
    border: 1px solid #f4d7df;
    background: #fff0f4;
    color: #c9103a;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-icon svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-copy small {
    color: #a10d34;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .07em;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-copy strong {
    overflow: hidden;
    color: #172c47;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    min-width: 102px;
    height: 36px;
    padding: 0 9px;
    border: 1px solid #f0c7d2;
    background: #fff0f4;
    color: #b90e35;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-chevron svg {
    width: 15px;
    height: 15px;
    flex: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.storefront.account-page.account-is-authenticated .account-sidebar.is-menu-open .account-mobile-section-chevron {
    background: #fff;
    color: #c9103a;
  }

  body.storefront.account-page.account-is-authenticated .account-sidebar.is-menu-open .account-mobile-section-chevron svg {
    transform: rotate(180deg);
  }

  body.storefront.account-page.account-is-authenticated .account-sidebar.account-mobile-menu-ready:not(.is-menu-open) .account-workspace-nav {
    display: none;
  }

  body.storefront.account-page.account-is-authenticated .account-sidebar.is-menu-open .account-workspace-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    width: 100%;
    margin: 8px 0 0;
    padding: 8px;
    overflow: visible;
    border: 1px solid #dce5ef;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 26px #172d490d;
  }

  body.storefront.account-page.account-is-authenticated .account-sidebar.is-menu-open .account-workspace-nav .account-mobile-list-title {
    display: none;
  }

  body.storefront.account-page.account-is-authenticated .account-sidebar.is-menu-open .account-workspace-nav a,
  body.storefront.account-page.account-is-authenticated .account-sidebar.is-menu-open .account-workspace-nav a:nth-of-type(n+4) {
    grid-column: 1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    min-height: 48px;
    margin: 0;
    padding: 5px 10px;
    border-radius: 10px;
    text-align: left;
  }

  body.storefront.account-page.account-is-authenticated .account-sidebar.is-menu-open .account-workspace-nav a span:nth-child(2),
  body.storefront.account-page.account-is-authenticated .account-sidebar.is-menu-open .account-workspace-nav a[data-account-view="balance"] > span:nth-child(2) {
    flex: 1;
    font-size: 13px;
    text-align: left;
  }

  body.storefront.account-page.account-is-authenticated .account-sidebar.is-menu-open .account-workspace-nav a[data-account-view="balance"] > span:nth-child(2)::after {
    content: none;
  }

  body.storefront.account-page.account-is-authenticated .account-sidebar.is-menu-open .account-workspace-nav a small {
    position: static;
    margin-left: auto;
  }
}

@media (max-width: 360px) {
  body.storefront.account-page.account-is-authenticated .account-mobile-section-toggle {
    gap: 9px;
    padding-inline: 9px;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-copy strong {
    font-size: 13px;
  }

  body.storefront.account-page.account-is-authenticated .account-mobile-section-chevron {
    min-width: 92px;
    padding-inline: 6px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.storefront.account-page.account-is-authenticated .account-mobile-section-toggle,
  body.storefront.account-page.account-is-authenticated .account-mobile-section-chevron {
    transition: none;
  }
}
