body[data-page="profile"] #main { --tracking-red: #f20c29; display: flex; flex-direction: column; justify-content: center; padding: 32px 24px 40px; background: #fafbf9; color: #242724; }
.customer-panel { background: #fff; border: 1px solid #e7e9e5; border-radius: 14px; padding: 26px; box-shadow: 0 2px 10px #17230f06; min-width: 0; font-size: 14px; line-height: 1.5; }
.customer-auth { width: 100%; max-width: 460px; margin: 0 auto; flex-shrink: 0; }
.customer-panel h1, .customer-heading h1 { font-size: 24px; line-height: 1.3; font-weight: 750; letter-spacing: -.035em; margin: 0 0 6px; }
.customer-panel h2 { font-size: 18px; font-weight: 700; margin: 0 0 20px; }
.account-muted { color: #747874; font-size: 14px; line-height: 1.5; }
.account-symbol { width: 42px; height: 42px; display: grid; place-items: center; background: #fff0f3; color: #f20c29; border-radius: 11px; margin-bottom: 16px; }
.account-symbol .icon { width: 22px; height: 22px; }
.account-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #f3f4f1; margin: 24px 0; }
.account-tabs button { flex: 1; padding: 10px 8px; border-radius: 7px; font-size: 14px; font-weight: 650; color: #747874; }
.account-tabs button[aria-selected="true"] { background: #fff; color: #242724; box-shadow: 0 1px 4px #17230f12; }
.customer-panel .field { margin-bottom: 16px; }
.customer-panel .field-label { display: block; font-size: 13px; font-weight: 600; color: #3d423e; margin-bottom: 7px; }
.customer-panel input { width: 100%; min-height: 44px; border: 1px solid #dfe3db; border-radius: 8px; padding: 10px 12px; background: #fff; color: #242724; font-size: 15px; }
.customer-panel input[readonly] { background: #f7f8f6; color: #747874; }
.customer-panel input:focus { outline: 2px solid #f20c2940; outline-offset: 1px; border-color: #f20c29; }
.customer-panel .tracking-button { width: 100%; }
.account-feedback { color: #bc142b; background: #fff0f3; padding: 10px 12px; border-radius: 8px; margin: 0 0 16px; font-size: 13px; }
.account-hint { font-size: 12px; color: #747874; margin: -9px 0 17px; line-height: 1.5; }
.account-note { text-align: center; color: #747874; font-size: 13px; margin-top: 17px; }
.customer-panel details { border-top: 1px solid #eceee9; margin-top: 22px; padding-top: 17px; }
.customer-panel summary { font-size: 13px; cursor: pointer; font-weight: 600; }
.customer-panel details form { margin-top: 18px; }
.customer-dashboard { width: 100%; max-width: 1120px; margin: 0 auto; flex-shrink: 0; }
.customer-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.customer-section-tabs { display: flex; gap: 6px; max-width: 100%; margin: -5px 0 20px; border-bottom: 1px solid #e5e8e5; overflow-x: auto; scrollbar-width: thin; }
.customer-section-tabs [role="tab"] { flex: 0 0 auto; padding: 12px 15px; border-bottom: 2px solid transparent; color: #747874; font-size: 14px; font-weight: 500; white-space: nowrap; }
.customer-section-tabs [role="tab"][aria-selected="true"] { border-bottom-color: #f20c29; color: #242724; }
.customer-section-tabs [role="tab"]:focus-visible { outline: 2px solid #f20c29; outline-offset: -3px; border-radius: 6px; }
.customer-tab-panels, .customer-tab-panels > .customer-panel { min-width: 0; width: 100%; }
.customer-tab-panels > [role="tabpanel"][hidden] { display: none; }
.customer-heading > div { min-width: 0; overflow-wrap: anywhere; }
.customer-heading .tracking-button { flex-shrink: 0; }
.customer-username { display: inline-block; font-size: 13px; margin-left: 5px; }
.customer-columns { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 24px; }
.customer-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.customer-section-heading h2 { margin: 0; }
.customer-section-heading > span { font-size: 13px; white-space: nowrap; }
.customer-empty { text-align: center; padding: 38px 8px 24px; }
.customer-empty .account-symbol { margin: 0 auto 16px; width: 54px; height: 54px; }
.customer-empty h3 { font-size: 16px; margin-bottom: 8px; }
.customer-empty p { max-width: 350px; margin: 0 auto 22px; }
.customer-empty .tracking-button { width: auto; }
.customer-order { display: grid; grid-template-columns: 34px minmax(0,1fr) auto 18px; gap: 12px; align-items: center; padding: 18px 0; }
.customer-order + .customer-order { border-top: 1px solid #eceee9; }
.customer-order:hover .customer-order-info > strong { color: #f20c29; }
.customer-order-icon { color: #747874; background: #f7f8f6; border-radius: 8px; width: 34px; height: 38px; display: grid; place-items: center; }
.customer-order-icon .icon, .customer-order-arrow .icon { width: 18px; height: 18px; }
.customer-order-info { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.customer-order-info strong { font-size: 14px; font-weight: 650; }
.customer-order-info span, .customer-order-info small { font-size: 12px; color: #747874; }
.customer-order-summary { display: grid; justify-items: end; gap: 6px; }
.customer-order-summary > strong { font-size: 15px; white-space: nowrap; }
.customer-order-status { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: #f3f4f1; color: #636563; }
.customer-order-status.is-danger { background: #ffe6e9; color: #c7142c; }
.customer-order-status.is-success { background: #e8f5ed; color: #16834a; }
.customer-order-status.is-warning { background: #fff5dc; color: #976300; }
.customer-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid #eceee9; font-size: 13px; }
.customer-pagination a { color: #d40b24; font-weight: 650; padding: 8px 0; }
.customer-tab-panels .customer-section-heading { margin-bottom: 5px; }
.account-address-heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: 12px; }
.account-address-heading-actions a { padding: 7px 9px; border-radius: 8px; background: #f3f4f1; color: #292d29; text-decoration: none; white-space: nowrap; }
.account-address-heading-actions a:hover, .account-address-heading-actions a:focus-visible { background: #e8ebea; }
.customer-tab-panels .customer-panel > .account-muted { margin-bottom: 18px; }
.account-address-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid #eceee9; }
.account-address-card > div:first-child { min-width: 0; flex: 1; }
.account-address-card strong { font-size: 14px; font-weight: 600; }
.account-address-card p { margin: 4px 0 0; color: #6c726d; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.account-address-default { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 6px; background: #e8f5ed; color: #16834a; font-size: 12px; }
.account-address-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 9px; max-width: 180px; }
.account-address-actions button { padding: 3px; color: #393d39; font-size: 12px; text-decoration: underline; }
.account-address-actions [data-address-delete] { color: #bf293c; }
.account-address-empty { padding: 15px 0; border-top: 1px solid #eceee9; color: #747874; font-size: 13px; }
.account-saved-form { margin-top: 14px; padding-top: 18px; border-top: 1px solid #eceee9; }
.account-saved-form h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.account-address-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.account-address-full { grid-column: 1 / -1; }
.account-address-search { display: flex; gap: 8px; align-items: stretch; }
.account-address-search input { flex: 1; min-width: 0; }
.account-find-address { flex: 0 0 auto; padding: 0 12px; border-radius: 8px; background: #f2f3f5; color: #242724; font-size: 13px; }
.account-find-address:disabled { opacity: .55; }
.account-address-map { height: 210px; border-radius: 11px; background: #e8ebee; overflow: hidden; }
.account-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.account-map-heading .field-label { margin: 0; }
.account-share-location { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 8px; background: #f2f3f5; color: #30343b; font-size: 12px; }
.account-share-location .icon { width: 15px; height: 15px; }
.account-share-location:disabled { opacity: .55; }
.account-map-feedback { margin: 8px 0 0; color: #747874; font-size: 12px; }
.customer-panel textarea { width: 100%; min-height: 78px; resize: vertical; border: 1px solid #dfe3db; border-radius: 8px; padding: 10px 12px; background: #fff; color: #242724; font-size: 15px; }
.customer-panel textarea:focus { outline: 2px solid #f20c2940; outline-offset: 1px; border-color: #f20c29; }
.account-check { display: flex; align-items: flex-start; gap: 9px; margin: 3px 0 17px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.customer-panel .account-check input { width: 18px; height: 18px; min-height: 18px; margin: 1px 0 0; padding: 0; flex: 0 0 18px; accent-color: #f20c29; }
.account-form-actions { display: flex; gap: 10px; }
.account-form-actions .tracking-button { flex: 1; }
.account-billing-fields[hidden], .account-billing-document[hidden], .account-cf-value[hidden], .account-form-actions [hidden] { display: none; }
.account-billing-fields { padding: 14px 0 2px; }
.account-billing-document fieldset { margin: 0 0 15px; padding: 0; border: 0; }
.account-billing-document fieldset label { display: inline-flex; align-items: center; gap: 5px; margin-right: 16px; font-size: 13px; }
.customer-panel .account-billing-document fieldset input { width: 16px; height: 16px; min-height: 16px; padding: 0; accent-color: #f20c29; }
.account-cf-value { padding: 11px 13px; border-radius: 9px; background: #f7f8f6; font-size: 13px; }
.account-feedback.is-success { color: #187a4a; background: #e9f7ef; }
body[data-page="profile"] button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 900px) { .customer-columns { grid-template-columns: minmax(0,1fr); } .customer-settings { max-width: none; } }
@media (max-width: 600px) {
  body[data-page="profile"] #main { padding: 22px 16px 28px; }
  .customer-panel { padding: 20px 18px; }
  .customer-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .customer-heading .tracking-button { min-height: 40px; padding: 9px 17px; font-size: 13px; }
  .customer-panel input { font-size: 16px; }
  .customer-order { grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .customer-order-icon, .customer-order-arrow { display: none; }
  .customer-order-summary { max-width: 120px; }
  .customer-empty { padding: 28px 0 16px; }
  .account-address-card { flex-direction: column; }
  .account-address-actions { max-width: none; justify-content: flex-start; }
  .account-address-fields { grid-template-columns: 1fr; }
  .account-address-search { flex-direction: column; }
  .account-find-address { min-height: 40px; }
}
