/* Standalone account links for generated invitations without storefront.css.
   A low-priority layer lets the existing storefront navigation keep its authored appearance. */
@layer customer-entry {
  .customer-account-nav {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem .75rem;
    max-width: min(80rem, 100%);
    min-width: 0;
    margin-inline: auto;
    padding: .65rem clamp(1rem, 4vw, 2rem);
    border-top: 1px solid #d3c8b8;
    background: #fffaf3;
    color: #26352f;
    font: 600 .875rem/1.3 system-ui, sans-serif;
    overflow-wrap: anywhere;
  }
  .customer-account-nav a {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: .5rem .9rem;
    border: 1px solid #9b7652;
    border-radius: 999px;
    color: #26352f;
    background: #fffaf3;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .customer-account-nav a:hover { background: #f1e5d5; }
  .customer-account-nav a:focus-visible { outline: 3px solid #855400; outline-offset: 2px; }
  .customer-account-nav a.btn-primary { background: #26352f; color: #fffaf3; border-color: #26352f; }
  .customer-account-menu { max-width: 100%; min-width: 0; }
  .customer-account-menu-summary {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    padding: .5rem .9rem;
    border: 1px solid #9b7652;
    border-radius: 999px;
    background: #fffaf3;
    color: #26352f;
    text-align: center;
    cursor: pointer;
    list-style: none;
    /* "Cuenta" is one short word: it never breaks into letters, and the pill never shrinks below it. */
    white-space: nowrap;
    overflow-wrap: normal;
    flex-shrink: 0;
  }
  .customer-account-menu-summary::-webkit-details-marker { display: none; }
  .customer-account-menu-summary:focus-visible { outline: 3px solid #855400; outline-offset: 2px; }
  .customer-account-menu-summary::after { content: "⌄"; content: "⌄" / ""; margin-inline-start: .15rem; }
  .customer-account-menu-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    max-width: 100%;
    min-width: 0;
    margin-top: .5rem;
  }
  @media (max-width: 600px) {
    .customer-account-nav { justify-content: center; gap: .5rem; max-width: 100%; }
    .customer-account-nav a { flex: 1 1 8rem; max-width: 100%; }
    .customer-account-menu, .customer-account-menu-summary, .customer-account-menu-panel { max-width: 100%; }
    .customer-account-menu-panel { flex-direction: column; align-items: stretch; }
  }
}
