/* Customer club navigation and shared reading/form rhythm. Page-specific layouts load after this file. */
.customer-portal-ux { --customer-focus: #237848; }
.customer-portal-ux .customer-global-header__row { min-height: 70px; gap: 20px; }
.customer-portal-ux .customer-brand__logo { max-width: 112px; max-height: 38px; object-fit: contain; }
.customer-portal-ux .customer-brand__club strong { font-size: 14px; }
.customer-portal-ux .customer-brand__club small { font-size: 10px; }
.customer-portal-ux .customer-shell-content { padding-top: 22px; }
.customer-portal-ux .customer-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.customer-portal-ux .customer-topbar > div { min-width: 0; }
.customer-portal-ux .customer-topbar > div strong { font-size: 22px; line-height: 1.65; }
.customer-portal-ux .customer-topbar > div span { display: block; max-width: 72ch; font-size: 12px; line-height: 1.9; }
.customer-portal-ux .customer-topbar .ux-page-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; flex-shrink: 0; padding: 9px 14px; border-radius: 12px; background: var(--customer-green); color: #fff; font-size: 12px; font-weight: 800; }
.customer-portal-ux .customer-topbar .ux-page-action--light { background: #edf5ef; color: var(--customer-green-dark); }
.customer-portal-ux .form-card, .customer-portal-ux .table-card { padding: 20px; border-radius: 18px; }
.customer-portal-ux .crm-form .form-grid { gap: 14px; }
.customer-portal-ux .crm-form > label { margin-top: 12px; }
.customer-portal-ux .crm-form label { font-size: 13px; line-height: 1.8; }
.customer-portal-ux .crm-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.customer-portal-ux .crm-form select { min-height: 44px; }
.customer-portal-ux .crm-form textarea { line-height: 1.8; }
.customer-portal-ux .form-help, .customer-portal-ux .checkout-address-help { font-size: 11px; line-height: 1.9; }
.customer-portal-ux .notice { padding: 12px 15px; border-radius: 12px; line-height: 1.9; }
.customer-portal-ux .section-title { gap: 12px; }
.customer-portal-ux .section-title h2, .customer-portal-ux .table-title { font-size: 16px; }
.customer-portal-ux .customer-account-menu__panel { min-width: 240px; max-width: calc(100vw - 28px); }
.customer-account-menu__heading { display: grid; gap: 3px; padding: 9px 10px 12px; margin-bottom: 5px; border-bottom: 1px solid var(--customer-line); }
.customer-account-menu__heading strong { font-size: 13px; }
.customer-account-menu__heading span { font-size: 10px; color: var(--customer-muted); }
.customer-portal-ux .customer-account-menu__panel a,
.customer-portal-ux .customer-account-menu__panel button { min-height: 44px; }
.customer-skip-link { position: fixed; top: -100px; right: 16px; z-index: 1000; background: #fff; color: #063f22; padding: 12px 18px; border: 2px solid #237848; border-radius: 10px; }
.customer-skip-link:focus { top: 12px; }
.customer-portal-ux :where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--customer-focus); outline-offset: 3px; }
.customer-portal-ux [hidden] { display: none !important; }
.customer-portal-ux .ux-disclosure { border: 1px solid var(--customer-line); border-radius: 16px; background: #fff; margin: 16px 0; }
.customer-portal-ux details.ux-disclosure { padding: 0; }
.ux-disclosure > summary, .ux-inline-disclosure > summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; min-height: 48px; padding: 15px 18px; font-size: 13px; font-weight: 800; color: var(--customer-ink); }
.ux-disclosure > summary::-webkit-details-marker, .ux-inline-disclosure > summary::-webkit-details-marker { display: none; }
.ux-disclosure > summary::after, .ux-inline-disclosure > summary::after { content: ''; width: 7px; height: 7px; margin-inline-start: auto; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); flex-shrink: 0; }
.ux-disclosure[open] > summary::after, .ux-inline-disclosure[open] > summary::after { transform: rotate(135deg); }
.ux-disclosure > summary small { margin-inline-start: auto; font-size: 11px; font-weight: 400; color: var(--customer-muted); }
.ux-disclosure__body { padding: 2px 18px 18px; }
.ux-inline-disclosure { margin: 12px 0; border-top: 1px solid var(--customer-line); }
.ux-inline-disclosure > summary { padding-inline: 0; font-size: 12px; color: var(--customer-muted); }
.customer-portal-ux .address-map-picker__coords { display: none; }
.customer-portal-ux .address-map-picker__hint { font-size: 11px; }
.customer-portal-ux .customer-profile-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.customer-profile-summary p { margin: 0; font-size: 12px; }
.customer-profile-summary a { font-size: 12px; color: var(--customer-green); font-weight: 800; }
.customer-portal-ux .customer-address-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.customer-portal-ux .customer-address-card { margin: 0; padding: 17px; min-width: 0; }
.customer-portal-ux .customer-address-card p { overflow-wrap: anywhere; font-size: 13px; line-height: 1.9; }
.customer-portal-ux .customer-address-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-portal-ux .customer-address-actions :is(a,button) { min-height: 40px; }
.ux-ticket-list { display: grid; gap: 12px; }
.ux-ticket-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; padding: 16px; border: 1px solid var(--customer-line); border-radius: 14px; }
.ux-ticket-card__main { display: grid; gap: 8px; min-width: 0; }
.ux-ticket-card__main > a { font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.ux-ticket-card__meta { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: var(--customer-muted); font-size: 11px; }
.ux-ticket-card > .btn-light { align-self: center; min-height: 44px; }
.customer-auth-ux .customer-auth-brand__copy h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.7; }
.customer-auth-ux .customer-auth-brand__copy { margin: auto 0; }
.customer-auth-ux .customer-auth-logo img { display: block; width: auto; height: 72px; object-fit: contain; }
.customer-auth-ux .customer-auth-mobile-brand img { display: block; width: 46px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.customer-auth-ux .customer-auth-back { display: inline-flex; align-items: center; gap: 6px; color: #0f6f3d; font-size: 12px; margin-top: 15px; }
@media (max-width: 1120px) {
    .customer-portal-ux .customer-main-nav a { padding-inline: 9px; font-size: 12px; }
    .customer-portal-ux .customer-brand__club small { display: none; }
}
@media (max-width: 900px) {
    .customer-portal-ux .customer-global-header__row { min-height: 62px; gap: 12px; }
    .customer-portal-ux .customer-shell-content { padding-top: 16px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
    .customer-portal-ux .customer-mobile-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 62px; padding: 4px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
    .customer-portal-ux .customer-mobile-nav--guest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .customer-portal-ux .customer-mobile-nav a { min-height: 50px; }
    .customer-portal-ux .customer-mobile-nav a > .ui-icon { --ui-icon-size: 20px; }
    .customer-page--checkout .customer-mobile-nav { display: none; }
    .customer-page--checkout .customer-global-header__row { min-height: 56px; }
    .customer-page--checkout .customer-shell-content { padding-top: 14px; padding-bottom: 16px; }
}
@media (max-width: 560px) {
    .customer-portal-ux .customer-brand { gap: 7px; }
    .customer-portal-ux .customer-brand__logo { max-width: 85px; max-height: 32px; }
    .customer-portal-ux .customer-brand__club strong { font-size: 12px; }
    .customer-portal-ux .customer-topbar { gap: 10px; align-items: flex-start; margin-bottom: 13px; }
    .customer-portal-ux .customer-topbar > div strong { font-size: 19px; }
    .customer-portal-ux .customer-topbar > div span { font-size: 11px; }
    .customer-portal-ux .customer-topbar .ux-page-action { font-size: 11px; padding-inline: 11px; }
    .customer-portal-ux .form-card, .customer-portal-ux .table-card { padding: 16px; border-radius: 15px; }
    .customer-portal-ux .crm-form .form-grid { gap: 12px; }
    .customer-portal-ux .crm-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .customer-portal-ux .crm-form select, .customer-portal-ux .crm-form textarea { font-size: 16px; }
    .customer-portal-ux .customer-address-list { grid-template-columns: 1fr; }
    .customer-portal-ux .customer-address-card { padding: 15px; }
    .ux-disclosure > summary { padding: 13px 15px; }
    .ux-disclosure__body { padding-inline: 15px; padding-bottom: 15px; }
    .ux-ticket-card { padding: 13px; grid-template-columns: minmax(0, 1fr); }
    .ux-ticket-card > .btn-light { justify-self: start; }
    .customer-portal-ux .customer-account-menu__panel { position: fixed; top: 66px; left: 14px; right: 14px; width: auto; max-width: none; }
}
@media (max-width: 359px) {
    .customer-portal-ux .customer-brand__club { display: none; }
    .customer-portal-ux .customer-topbar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .customer-portal-ux *, .customer-auth-ux * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.customer-portal-ux .customer-order-overview ~ details.ux-disclosure.table-card { padding: 0; }
.customer-portal-ux .customer-shell-content, .customer-portal-ux details { scroll-margin-top: 78px; }
