:root {
  --customer-ink: #19171b;
  --customer-muted: #716b73;
  --customer-line: #e7dfe3;
  --customer-pink: #ee2d7a;
  --customer-pink-dark: #bd1f5d;
  --customer-blush: #fff2f6;
  --customer-mint: #dff3eb;
  --customer-shadow: 0 18px 50px rgba(58, 34, 46, 0.07);
}

.customer-auth-page,
.customer-portal {
  background-color: #fbf8fa;
  background-image: radial-gradient(#e8dfe3 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}

.customer-auth-panel { max-width: 560px; margin: 0 auto; }
.customer-auth-panel--wide { max-width: 760px; }
.customer-auth-links { display: flex; justify-content: flex-end; margin: -8px 0 20px; }
.customer-auth-links a { color: var(--customer-pink); font-weight: 600; }
.customer-alert { border-left: 4px solid; margin: 20px 0; padding: 14px 16px; font-weight: 600; }
.customer-alert--error { background: #fff0f0; border-color: #c93535; color: #812525; }
.customer-alert--success { background: #edf8f3; border-color: #27835e; color: #195d43; }

.customer-portal { padding-bottom: 110px; padding-top: 110px; }
.customer-portal__header { align-items: center; display: flex; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.customer-portal__identity { align-items: center; display: flex; gap: 22px; min-width: 0; }
.customer-portal__identity > div { min-width: 0; }
.customer-portal__avatar { align-items: center; background: var(--customer-pink); color: #fff; display: flex; flex: 0 0 76px; font-size: 30px; font-weight: 800; height: 76px; justify-content: center; }
.customer-portal__header h1 { color: var(--customer-ink); font-size: clamp(34px, 4vw, 54px); line-height: 1; margin: 7px 0 10px; overflow-wrap: anywhere; }
.customer-portal__header p { color: var(--customer-muted); margin: 0; }
.customer-portal__logout { align-items: center; background: #fff; border: 1px solid var(--customer-line); color: var(--customer-ink); display: inline-flex; gap: 9px; padding: 12px 18px; }
.customer-portal__logout:hover { border-color: var(--customer-pink); color: var(--customer-pink); }
.customer-portal__nav { background: rgba(251, 248, 250, 0.97); border-bottom: 1px solid var(--customer-line); border-top: 1px solid var(--customer-line); position: relative; }
.customer-portal__nav-links { display: flex; gap: 3px; overflow-x: auto; padding: 9px 0; scrollbar-width: none; }
.customer-portal__nav-links::-webkit-scrollbar { display: none; }
.customer-portal__nav-links a { border-bottom: 2px solid transparent; color: var(--customer-ink); flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 12px 13px 10px; text-transform: uppercase; }
.customer-portal__nav-links a:hover,
.customer-portal__nav-links a.is-active { background: var(--customer-blush); border-bottom-color: var(--customer-pink); color: var(--customer-pink-dark); }
.customer-portal__nav-links i { color: var(--customer-pink); font-size: 14px; margin-right: 7px; }
.customer-portal__nav-mobile { display: none; }
.customer-portal__stats { border: 1px solid var(--customer-line); box-shadow: var(--customer-shadow); display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0 72px; }
.customer-portal__stats article { align-items: center; background: #fff; display: grid; grid-template-columns: 42px 1fr; padding: 22px; }
.customer-portal__stats article + article { border-left: 1px solid var(--customer-line); }
.customer-portal__stats i { color: var(--customer-pink); font-size: 24px; grid-row: span 2; }
.customer-portal__stats span { color: var(--customer-ink); font-size: 28px; font-weight: 800; line-height: 1; }
.customer-portal__stats small { color: var(--customer-muted); margin-top: 4px; }
.customer-portal__section { scroll-margin-top: 120px; margin-bottom: 72px; }
.customer-portal__section-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 24px; }
.customer-portal__section-heading div { align-items: baseline; display: flex; gap: 14px; }
.customer-portal__section-heading span { color: var(--customer-pink); font-size: 13px; font-weight: 800; }
.customer-portal__section-heading h2 { color: var(--customer-ink); font-size: 28px; margin: 0; }
.customer-portal__section-heading > i { color: #d8c8cf; font-size: 32px; }
.customer-portal__section-action { align-items: center; background: #fff; border: 1px solid var(--customer-line); color: var(--customer-ink); display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 800; gap: 7px; min-height: 40px; padding: 8px 13px; }
.customer-portal__section-action:hover { border-color: var(--customer-pink); color: var(--customer-pink-dark); }
.customer-portal__cards { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-subscription,
.customer-shipment { background: #fff; border: 1px solid var(--customer-line); box-shadow: 0 12px 34px rgba(58, 34, 46, 0.04); padding: 26px; }
.customer-subscription h3 { color: var(--customer-ink); font-size: 22px; margin: 14px 0 22px; }
.customer-subscription dl,
.customer-shipment dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.customer-subscription dl div,
.customer-shipment dl div { border-top: 1px solid var(--customer-line); padding-top: 14px; }
.customer-subscription dt,
.customer-shipment dt { color: var(--customer-muted); font-size: 12px; font-weight: 500; }
.customer-subscription dd,
.customer-shipment dd { color: var(--customer-ink); font-weight: 700; margin: 4px 0 0; overflow-wrap: anywhere; }
.customer-portal__cards--delivery { grid-template-columns: minmax(0, 1fr); }
.customer-delivery-card { border-left: 3px solid var(--customer-pink); }
.customer-delivery-card__heading { align-items: center; display: flex; gap: 16px; margin-bottom: 24px; }
.customer-delivery-card__heading > span { align-items: center; background: var(--customer-blush); color: var(--customer-pink); display: flex; flex: 0 0 52px; height: 52px; justify-content: center; }
.customer-delivery-card__heading small { color: var(--customer-pink-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.customer-delivery-card__heading h3 { margin: 3px 0; }
.customer-delivery-card__heading p { color: var(--customer-muted); margin: 0; overflow-wrap: anywhere; }
.customer-delivery-card dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.customer-delivery-card dt i { color: var(--customer-pink); margin-right: 5px; }
.customer-profile-form { background: #fff; border: 1px solid var(--customer-line); box-shadow: var(--customer-shadow); padding: 28px; }
.customer-profile-form[hidden] { display: none; }
.customer-profile-summary { background: #fff; border: 1px solid var(--customer-line); box-shadow: var(--customer-shadow); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 26px; }
.customer-profile-summary[hidden] { display: none; }
.customer-profile-summary--delivery { border-left: 3px solid var(--customer-pink); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.customer-profile-summary div { min-width: 0; padding-right: 20px; }
.customer-profile-summary div + div { border-left: 1px solid var(--customer-line); padding-left: 20px; }
.customer-profile-summary dt { color: var(--customer-muted); font-size: 11px; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.customer-profile-summary dd { color: var(--customer-ink); font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.customer-profile-summary dd small { color: var(--customer-muted); font-weight: 500; }
.customer-profile-preferences { align-items: center; background: var(--customer-blush); border: 1px solid #eccdd9; display: flex; gap: 16px; padding: 24px 26px; }
.customer-profile-preferences[hidden] { display: none; }
.customer-profile-preferences > i { color: var(--customer-pink); font-size: 22px; }
.customer-profile-preferences p { color: var(--customer-ink); margin: 0; overflow-wrap: anywhere; }
.customer-profile-security { align-items: center; background: #fff; border: 1px solid var(--customer-line); display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; padding: 18px 22px; }
.customer-profile-security[hidden] { display: none; }
.customer-profile-security > div { align-items: center; display: flex; gap: 13px; }
.customer-profile-security > div > i { color: var(--customer-pink); font-size: 20px; }
.customer-profile-security span { display: flex; flex-direction: column; }
.customer-profile-security strong { color: var(--customer-ink); }
.customer-profile-security small { color: var(--customer-muted); }
.customer-profile-form--password { margin-top: 14px; }
.customer-profile-form--delivery { border-left: 3px solid var(--customer-pink); }
.customer-profile-form--preferences { background: var(--customer-blush); border-color: #eccdd9; }
.customer-profile-form__grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-profile-form label { display: block; margin: 0; min-width: 0; }
.customer-profile-form label > span { color: var(--customer-ink); display: block; font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.customer-profile-form input,
.customer-profile-form select,
.customer-profile-form textarea { background: #fff; border: 1px solid var(--customer-line); color: var(--customer-ink); min-height: 48px; padding: 11px 13px; width: 100%; }
.customer-profile-form textarea { min-height: 130px; resize: vertical; }
.customer-profile-form input:focus,
.customer-profile-form select:focus,
.customer-profile-form textarea:focus { border-color: var(--customer-pink); box-shadow: 0 0 0 3px rgba(238, 45, 122, 0.1); outline: 0; }
.customer-profile-form__wide { grid-column: 1 / -1; }
.customer-profile-form__actions { align-items: center; display: flex; gap: 16px; justify-content: flex-end; margin-top: 22px; }
.customer-profile-form__actions small { color: var(--customer-muted); margin-right: auto; }
.customer-profile-form__actions button { align-items: center; background: var(--customer-pink); border: 1px solid var(--customer-pink); color: #fff; display: inline-flex; font-size: 13px; font-weight: 800; gap: 8px; min-height: 46px; padding: 11px 18px; }
.customer-profile-form__actions button:hover { background: var(--customer-pink-dark); border-color: var(--customer-pink-dark); }
.customer-profile-form__actions .customer-profile-form__cancel { background: transparent; border-color: var(--customer-line); color: var(--customer-ink); }
.customer-profile-form__actions .customer-profile-form__cancel:hover { border-color: var(--customer-muted); color: var(--customer-ink); }
.customer-subscription__cancel { border-top: 1px solid var(--customer-line); margin-top: 20px; padding-top: 16px; text-align: right; }
.customer-subscription__cancel button { background: transparent; border: 0; color: #9b3349; font-size: 12px; font-weight: 800; padding: 6px 0; }
.customer-subscription__cancel button:hover { color: #721c30; }
.customer-subscription__cancel i { margin-right: 6px; }
.customer-status { background: #f0edf0; color: #504a50; display: inline-block; font-size: 12px; font-weight: 800; padding: 6px 10px; }
.customer-status--active,
.customer-status--completed,
.customer-status--delivered { background: var(--customer-mint); color: #176246; }
.customer-status--pending,
.customer-status--processing,
.customer-status--preparing,
.customer-status--shipped,
.customer-status--in_transit { background: #fff0c9; color: #785500; }
.customer-status--cancelled,
.customer-status--expired { background: #ffe1e1; color: #8b2727; }
.customer-shipment__route { align-items: center; color: var(--customer-pink); display: flex; margin-bottom: 22px; }
.customer-shipment__route span { border-top: 2px dashed #e9b9cb; flex: 1; margin: 0 12px; }
.customer-shipment__meta { align-items: center; display: flex; justify-content: space-between; margin-bottom: 20px; }
.customer-shipment__meta small { color: var(--customer-muted); display: block; }
.customer-shipment__meta strong,
.customer-table td,
.customer-table td a,
.customer-table td strong { color: var(--customer-ink); }
.customer-table-wrap { background: #fff; border: 1px solid var(--customer-line); overflow-x: auto; }
.customer-table { border-collapse: collapse; min-width: 700px; width: 100%; }
.customer-table th { color: var(--customer-muted); font-size: 12px; text-align: left; text-transform: uppercase; }
.customer-table th,
.customer-table td { border-bottom: 1px solid var(--customer-line); padding: 18px 20px; }
.customer-table tbody tr:last-child td { border-bottom: 0; }
.customer-products { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.customer-products article { align-items: center; background: #fff; border: 1px solid var(--customer-line); display: flex; gap: 18px; padding: 20px; }
.customer-products article > span { align-items: center; background: var(--customer-blush); color: var(--customer-pink); display: flex; flex: 0 0 56px; height: 56px; justify-content: center; }
.customer-products small,
.customer-products p { color: var(--customer-muted); }
.customer-products h3 { color: var(--customer-ink); font-size: 17px; margin: 3px 0; }
.customer-products p { font-size: 12px; margin: 0; }
.customer-empty { background: #fff; border: 1px dashed #d7c9cf; padding: 42px 24px; text-align: center; }
.customer-empty > i { color: var(--customer-pink); font-size: 34px; }
.customer-empty h3 { color: var(--customer-ink); font-size: 20px; margin: 14px 0 8px; }
.customer-empty p { color: var(--customer-muted); margin: 0 auto; max-width: 520px; }
.customer-empty a { background: var(--customer-pink); color: #fff; display: inline-block; font-weight: 700; margin-top: 18px; padding: 11px 18px; }

@media (max-width: 991px) {
  .customer-portal__stats { grid-template-columns: repeat(2, 1fr); }
  .customer-portal__stats article:nth-child(3) { border-left: 0; border-top: 1px solid var(--customer-line); }
  .customer-portal__stats article:nth-child(4) { border-top: 1px solid var(--customer-line); }
  .customer-products { grid-template-columns: repeat(2, 1fr); }
  .customer-delivery-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-profile-summary,
  .customer-profile-summary--delivery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-profile-summary div:nth-child(3) { border-left: 0; margin-top: 18px; padding-left: 0; }
  .customer-profile-summary--delivery div:nth-child(3) { border-left: 0; }
  .customer-profile-summary--delivery div:nth-child(3),
  .customer-profile-summary--delivery div:nth-child(4) { border-top: 1px solid var(--customer-line); margin-top: 18px; padding-top: 18px; }
}

@media (max-width: 767px) {
  .customer-auth-page,
  .customer-portal { padding-bottom: 64px; padding-top: 56px; }
  .customer-portal__header { align-items: center; gap: 12px; }
  .customer-portal__avatar { flex-basis: 60px; font-size: 24px; height: 60px; }
  .customer-portal__header h1 { font-size: 34px; }
  .customer-portal__header form { flex: 0 0 auto; }
  .customer-portal__logout { height: 44px; padding: 0; justify-content: center; width: 44px; }
  .customer-portal__logout i { margin: 0; }
  .customer-portal__logout { font-size: 0; }
  .customer-portal__logout i { font-size: 16px; }
  .customer-portal__nav { margin-left: calc(var(--bs-gutter-x, 1.5rem) * -0.5); margin-right: calc(var(--bs-gutter-x, 1.5rem) * -0.5); position: sticky; top: 0; z-index: 20; }
  .customer-portal__nav-links { display: none; }
  .customer-portal__nav-mobile { display: block; padding: 10px calc(var(--bs-gutter-x, 1.5rem) * 0.5); position: relative; }
  .customer-portal__nav-trigger { align-items: center; background: #fff; border: 1px solid #e2cbd5; color: var(--customer-ink); display: flex; font-size: 12px; font-weight: 800; justify-content: space-between; letter-spacing: 0.04em; min-height: 50px; padding: 10px 15px; text-transform: uppercase; width: 100%; }
  .customer-portal__nav-trigger > span { align-items: center; display: flex; min-width: 0; }
  .customer-portal__nav-trigger > span i { color: var(--customer-pink); flex: 0 0 auto; font-size: 15px; margin-right: 10px; }
  .customer-portal__nav-trigger > i { color: var(--customer-pink-dark); transition: transform 180ms ease; }
  .customer-portal__nav-trigger[aria-expanded="true"] > i { transform: rotate(180deg); }
  .customer-portal__nav-menu { background: #fff; border: 1px solid #e2cbd5; box-shadow: 0 18px 42px rgba(58, 34, 46, 0.14); left: calc(var(--bs-gutter-x, 1.5rem) * 0.5); padding: 7px; position: absolute; right: calc(var(--bs-gutter-x, 1.5rem) * 0.5); top: calc(100% - 2px); }
  .customer-portal__nav-menu[hidden] { display: none; }
  .customer-portal__nav-menu a { align-items: center; border-left: 3px solid transparent; color: var(--customer-ink); display: flex; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; min-height: 43px; padding: 9px 12px; text-transform: uppercase; }
  .customer-portal__nav-menu a:hover,
  .customer-portal__nav-menu a.is-active { background: var(--customer-blush); border-left-color: var(--customer-pink); color: var(--customer-pink-dark); }
  .customer-portal__nav-menu i { color: var(--customer-pink); font-size: 14px; margin-right: 10px; width: 17px; }
  .customer-portal__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 26px 0 54px; }
  .customer-portal__stats article { grid-template-columns: 34px 1fr; padding: 18px 14px; }
  .customer-portal__stats article:nth-child(3) { border-left: 0; border-top: 1px solid var(--customer-line); }
  .customer-portal__stats article:nth-child(4) { border-top: 1px solid var(--customer-line); }
  .customer-portal__stats i { font-size: 20px; }
  .customer-portal__stats span { font-size: 24px; }
  .customer-portal__stats small { font-size: 11px; line-height: 1.25; }
  .customer-portal__cards,
  .customer-products { grid-template-columns: 1fr; }
  .customer-subscription dl,
  .customer-shipment dl { grid-template-columns: 1fr; }
  .customer-delivery-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-subscription,
  .customer-shipment { padding: 20px; }
  .customer-portal__section { margin-bottom: 54px; }
  .customer-portal__section-heading { align-items: flex-start; gap: 12px; }
  .customer-portal__section-heading div { align-items: flex-start; min-width: 0; }
  .customer-portal__section-heading h2 { font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
  .customer-portal__section-heading > i { flex: 0 0 auto; font-size: 25px; }
  .customer-portal__section-action { font-size: 0; height: 40px; justify-content: center; padding: 0; width: 40px; }
  .customer-portal__section-action i { font-size: 14px; }
  .customer-table-wrap { background: transparent; border: 0; overflow: visible; }
  .customer-table { min-width: 0; }
  .customer-table thead { display: none; }
  .customer-table tbody,
  .customer-table tr,
  .customer-table td { display: block; width: 100%; }
  .customer-table tr { background: #fff; border: 1px solid var(--customer-line); box-shadow: 0 12px 34px rgba(58, 34, 46, 0.04); margin-bottom: 12px; padding: 8px 18px; }
  .customer-table td { align-items: center; border-bottom: 1px solid var(--customer-line); display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; text-align: right; }
  .customer-table td::before { color: var(--customer-muted); content: attr(data-label); flex: 0 0 auto; font-size: 11px; font-weight: 700; text-transform: uppercase; }
  .customer-table td:last-child { border-bottom: 0; }
  .customer-empty { padding: 34px 20px; }
  .customer-profile-form { padding: 20px; }
  .customer-profile-summary,
  .customer-profile-summary--delivery { grid-template-columns: 1fr; padding: 20px; }
  .customer-profile-summary div { border-left: 0 !important; border-top: 1px solid var(--customer-line); margin-top: 15px; padding: 15px 0 0; }
  .customer-profile-summary div:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
  .customer-profile-preferences { align-items: flex-start; padding: 20px; }
  .customer-profile-security { align-items: flex-start; padding: 16px; }
  .customer-profile-security .customer-portal__section-action { font-size: 0; }
  .customer-profile-form__grid { grid-template-columns: 1fr; }
  .customer-profile-form__wide { grid-column: auto; }
  .customer-profile-form__actions { align-items: stretch; flex-direction: column; }
  .customer-profile-form__actions button { justify-content: center; width: 100%; }
  .customer-subscription__cancel { text-align: left; }
}

@media (max-width: 420px) {
  .customer-portal__identity { gap: 13px; }
  .customer-portal__avatar { flex-basis: 52px; height: 52px; }
  .customer-portal__header h1 { font-size: 29px; }
  .customer-portal__identity .dbox-wizard__kicker { display: none; }
  .customer-portal__identity p { font-size: 12px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .customer-delivery-card dl { grid-template-columns: 1fr; }
}
