:root {
  --ink: #0c2138;
  --ink-soft: #334a5e;
  --muted: #6d7d89;
  --teal: #0b7480;
  --teal-dark: #075963;
  --teal-soft: #e9f5f4;
  --gold: #d29b2d;
  --paper: #fff;
  --canvas: #f3f5f4;
  --line: #dce3e3;
  --danger: #b23c3c;
  --success: #187653;
  --shadow: 0 18px 50px rgba(12, 33, 56, .11);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.profile-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(12, 33, 56, .09);
  background: rgba(255, 255, 255, .96);
}

.profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.profile-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.profile-brand > span {
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: .92;
}

.profile-brand strong {
  color: var(--teal);
}

.profile-brand small {
  margin-top: 7px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.text-link,
.quiet-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.text-link svg,
.quiet-button svg {
  width: 16px;
}

.quiet-button {
  color: var(--danger);
}

.auth-page {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(330px, .86fr) minmax(480px, 1.14fr);
}

.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(42px, 7vw, 100px);
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 179, 61, .28), transparent 28%),
    linear-gradient(145deg, #0c2138 0%, #123e4b 100%);
  color: #fff;
}

.auth-story::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .025), 0 0 0 120px rgba(255, 255, 255, .018);
}

.auth-story > img {
  width: 80px;
  height: 80px;
  margin-bottom: 46px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-story .eyebrow {
  color: #f2c86e;
}

.auth-story h1 {
  max-width: 520px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.02;
}

.auth-story > p:not(.eyebrow) {
  max-width: 520px;
  margin: 24px 0 0;
  color: #c7d6de;
  font-size: 14px;
  line-height: 1.75;
}

.auth-benefits {
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: rgba(255, 255, 255, .14);
}

.auth-benefits span {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  background: rgba(12, 33, 56, .74);
}

.auth-benefits svg {
  width: 22px;
  margin-bottom: auto;
  color: #f2c86e;
}

.auth-benefits b {
  margin-top: 24px;
  font-size: 11px;
}

.auth-benefits small {
  margin-top: 6px;
  color: #afc3ce;
  font-size: 9px;
  line-height: 1.5;
}

.auth-card {
  width: min(540px, calc(100% - 40px));
  align-self: center;
  justify-self: center;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.back-link svg {
  width: 14px;
}

.auth-heading {
  margin: 38px 0 25px;
}

.auth-heading h2,
.page-title h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.auth-heading > p:last-child,
.page-title > div > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 6px;
  background: #edf1f1;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.auth-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(12, 33, 56, .08);
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.social-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #ccd6d9;
  border-radius: 5px;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
}

.social-button > span {
  color: #4285f4;
  font-size: 16px;
}

.social-button.apple {
  border-color: #111;
  background: #111;
  color: #fff;
}

.social-button svg {
  width: 16px;
}

.social-button.disabled {
  opacity: .48;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 19px 0;
  color: #8b989f;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.account-form,
.profile-form,
.email-change-form,
.otp-form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid #cbd5d9;
  border-radius: 5px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  text-transform: none;
}

input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11, 116, 128, .1);
}

.phone-control {
  min-height: 45px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cbd5d9;
  border-radius: 5px;
  background: #fff;
}

.phone-control:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11, 116, 128, .1);
}

.phone-control b {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  background: #f0f3f3;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
}

.phone-control input,
.phone-control input:focus {
  min-height: 43px;
  border: 0;
  box-shadow: none;
}

.primary-button,
.secondary-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid var(--teal);
  border-radius: 5px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--teal-dark);
}

.primary-button svg,
.secondary-button svg {
  width: 15px;
}

.secondary-button {
  border-color: #cbd5d9;
  background: #fff;
  color: var(--ink);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: .6;
  cursor: wait;
}

.form-message {
  min-height: 18px;
  margin: 11px 0 0;
  color: var(--teal);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.5;
}

.form-message.error {
  color: var(--danger);
}

.account-page {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.account-sidebar {
  min-height: calc(100vh - 76px);
  padding: 46px 28px;
  border-right: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.profile-photo-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgba(12, 33, 56, .12);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo svg {
  width: 38px;
  height: 38px;
}

.photo-button {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
}

.photo-button svg {
  width: 13px;
}

.account-sidebar h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.account-sidebar > p {
  margin: 6px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 8px;
  font-weight: 850;
  text-transform: capitalize;
}

.account-badge svg {
  width: 12px;
}

.profile-nav {
  display: grid;
  gap: 5px;
  margin: 40px 0;
  text-align: left;
}

.profile-nav button {
  min-height: 45px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.profile-nav button.active {
  background: var(--teal-soft);
  color: var(--teal);
}

.profile-nav svg {
  width: 16px;
}

.profile-nav b {
  min-width: 23px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  font-size: 8px;
  text-align: center;
}

.sidebar-help {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9f9;
  text-align: left;
}

.sidebar-help > svg {
  width: 18px;
  color: var(--gold);
}

.sidebar-help > div {
  display: grid;
  gap: 4px;
}

.sidebar-help strong {
  font-size: 10px;
}

.sidebar-help small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.sidebar-help a {
  grid-column: 2;
  color: var(--teal);
  font-size: 9px;
  font-weight: 850;
}

.account-content {
  min-width: 0;
  padding: clamp(28px, 4vw, 62px);
}

.profile-panel {
  display: none;
  max-width: 1120px;
  margin: 0 auto;
}

.profile-panel.active {
  display: block;
}

.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.page-title h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr);
  gap: 18px;
  align-items: start;
}

.surface {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(12, 33, 56, .055);
}

.surface-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.surface-title > div {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
}

.surface-title svg {
  width: 18px;
}

.surface-title span {
  display: grid;
  gap: 4px;
}

.surface-title strong {
  font-size: 13px;
}

.surface-title small {
  color: var(--muted);
  font-size: 9px;
}

.profile-form {
  grid-template-columns: 1fr 1fr;
}

.full-field {
  grid-column: 1 / -1;
}

.current-email {
  display: grid;
  gap: 6px;
  padding: 14px;
  margin-bottom: 17px;
  border-radius: 5px;
  background: #f2f5f5;
}

.current-email span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.current-email strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.current-email small {
  color: var(--success);
  font-size: 8px;
}

.address-book {
  margin-top: 18px;
}

.address-book-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.address-book-head .surface-title {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
}

.friendly-tip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  padding: 12px 14px;
  border: 1px solid #eedcae;
  border-radius: 5px;
  background: #fffaf0;
  color: #70551c;
}

.friendly-tip svg {
  width: 18px;
  color: var(--gold);
}

.friendly-tip p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.address-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.address-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.address-card.default {
  border-color: rgba(11, 116, 128, .44);
  background: linear-gradient(135deg, #eff9f8 0%, #fff 70%);
}

.address-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
}

.address-card-icon svg {
  width: 19px;
}

.address-card-body {
  min-width: 0;
}

.address-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.address-card-title strong {
  font-size: 15px;
}

.default-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.address-card p {
  min-height: 32px;
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.pin-saved {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  color: var(--success);
  font-size: 10px;
  font-weight: 850;
}

.pin-saved svg {
  width: 12px;
}

.address-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.address-card-actions button {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.address-card-actions button.danger {
  color: var(--danger);
}

.address-card-actions button + button {
  padding-left: 9px;
  border-left: 1px solid var(--line);
}

.address-empty {
  grid-column: 1 / -1;
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 24px;
  border: 1px dashed #bdc9cc;
  border-radius: 6px;
  background: #f9fafa;
  text-align: center;
}

.address-empty svg {
  width: 31px;
  color: var(--teal);
}

.address-empty h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.address-empty p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.address-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(12, 33, 56, .3);
}

.address-dialog::backdrop {
  background: rgba(7, 21, 34, .65);
  backdrop-filter: blur(2px);
}

.address-dialog #addressForm {
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.address-dialog-head,
.address-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}

.address-dialog-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
}

.address-dialog-head > div > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.icon-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.icon-close svg {
  width: 17px;
}

.address-dialog-body {
  min-height: 0;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  padding: 18px 23px 25px;
  background: #f5f7f7;
}

.address-step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.step-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.step-heading > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.step-heading > div {
  display: grid;
  gap: 3px;
}

.step-heading strong {
  font-size: 14px;
}

.step-heading small {
  color: var(--muted);
  font-size: 11px;
}

.place-name-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  align-items: end;
}

.place-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.place-presets button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #cbd5d9;
  border-radius: 5px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.place-presets button.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.place-presets svg {
  width: 15px;
}

.map-search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 8px;
  margin-bottom: 12px;
}

.location-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #d4ba72;
  border-radius: 5px;
  background: #fff9e9;
  color: #765815;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.location-button svg {
  width: 15px;
}

.map-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.address-map {
  min-height: 350px;
  background: #e9eeee;
}

.map-loading {
  min-height: 350px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
}

.map-loading span {
  width: 28px;
  height: 28px;
  border: 3px solid #cbd6d7;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.map-loading p {
  margin: 0;
  font-size: 11px;
}

.pin-help {
  position: absolute;
  left: 13px;
  bottom: 13px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 5px;
  background: rgba(12, 33, 56, .92);
  color: #fff;
  box-shadow: 0 8px 24px rgba(12, 33, 56, .2);
  pointer-events: none;
}

.pin-help > svg {
  width: 17px;
  color: #f2c86e;
}

.pin-help span {
  display: grid;
  gap: 3px;
}

.pin-help strong {
  font-size: 11px;
}

.pin-help small {
  color: #becdd5;
  font-size: 9px;
}

.map-message {
  min-height: 16px;
  margin: 8px 0 0;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.map-message.error {
  color: var(--danger);
}

.address-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.address-fields label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
}

.default-check {
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8fafa;
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}

.default-check input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.default-check > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #fff4d5;
  color: #98701a;
}

.default-check svg {
  width: 15px;
}

.default-check > div {
  display: grid;
  gap: 3px;
}

.default-check strong {
  font-size: 12px;
}

.default-check small {
  color: var(--muted);
  font-size: 10px;
}

.address-dialog-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
}

.otp-form {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.otp-form p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.orders-list {
  display: grid;
  gap: 13px;
}

.order-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(12, 33, 56, .045);
}

.order-summary {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1.2fr .9fr .7fr auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 17px 20px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.order-summary > span {
  display: grid;
  gap: 5px;
}

.order-summary small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-summary strong {
  font-size: 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 8px;
  font-weight: 900;
}

.status-chip.cancelled,
.status-chip.refunded {
  background: #faeaea;
  color: var(--danger);
}

.order-summary > svg {
  width: 17px;
  transition: transform .18s ease;
}

.order-card.open .order-summary > svg {
  transform: rotate(180deg);
}

.order-details {
  display: none;
  padding: 0 20px 22px;
  border-top: 1px solid var(--line);
}

.order-card.open .order-details {
  display: block;
}

.tracking-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 27px 0 30px;
  padding: 0;
  list-style: none;
}

.tracking-steps li {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  text-align: center;
}

.tracking-steps li::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}

.tracking-steps li:last-child::after {
  display: none;
}

.tracking-steps span {
  z-index: 1;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 9px;
}

.tracking-steps li.done {
  color: var(--teal);
}

.tracking-steps li.done::after {
  background: var(--teal);
}

.tracking-steps li.done span {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
}

.order-lines {
  display: grid;
  gap: 9px;
}

.order-line,
.order-total {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--ink-soft);
  font-size: 10px;
}

.order-line span {
  display: grid;
  gap: 3px;
}

.order-line small {
  color: var(--muted);
  font-size: 8px;
}

.order-total {
  margin-top: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.delivery-address {
  padding: 14px;
  border-radius: 5px;
  background: #f4f7f7;
}

.delivery-address strong {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
}

.delivery-address p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.empty-orders,
.loading-card {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 30px;
  border: 1px dashed #bdc9cc;
  border-radius: 7px;
  background: #fff;
  text-align: center;
}

.empty-orders svg {
  width: 34px;
  color: var(--teal);
}

.empty-orders h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.empty-orders p,
.loading-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.loading-card span {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  min-width: 240px;
  max-width: calc(100% - 32px);
  padding: 13px 17px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1020px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-story {
    min-height: 410px;
  }

  .auth-benefits {
    margin-top: 36px;
  }

  .auth-card {
    margin: 50px auto;
  }

  .account-page {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .profile-header {
    min-height: 66px;
    padding: 9px 16px;
  }

  .profile-brand img {
    width: 40px;
    height: 40px;
  }

  .profile-brand > span {
    font-size: 20px;
  }

  .text-link {
    display: none;
  }

  .auth-page {
    min-height: calc(100vh - 66px);
  }

  .auth-story {
    min-height: 360px;
    padding: 40px 22px;
  }

  .auth-story > img {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
  }

  .auth-story h1 {
    font-size: 42px;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
  }

  .auth-benefits span {
    min-height: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
  }

  .auth-benefits svg {
    grid-row: span 2;
    margin: 0;
  }

  .auth-benefits b {
    margin: 0;
  }

  .auth-card {
    width: calc(100% - 24px);
    margin: 20px auto 40px;
    padding: 28px 20px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .account-page {
    display: block;
  }

  .account-sidebar {
    min-height: auto;
    padding: 28px 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-photo-wrap {
    width: 82px;
    height: 82px;
  }

  .profile-nav {
    grid-template-columns: 1fr 1fr;
    margin: 28px -18px 0;
    border-top: 1px solid var(--line);
  }

  .profile-nav button {
    border-radius: 0;
  }

  .sidebar-help {
    display: none;
  }

  .account-content {
    padding: 30px 15px 60px;
  }

  .page-title {
    align-items: start;
    flex-direction: column;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .full-field {
    grid-column: auto;
  }

  .surface {
    padding: 20px 16px;
  }

  .address-book-head,
  .address-dialog-head {
    align-items: stretch;
    flex-direction: column;
  }

  .address-book-head .primary-button {
    width: 100%;
  }

  .address-list,
  .place-name-row,
  .address-fields {
    grid-template-columns: 1fr;
  }

  .map-search-row {
    grid-template-columns: 1fr 1fr;
  }

  .map-search-row label {
    grid-column: 1 / -1;
  }

  .address-map,
  .map-loading {
    min-height: 300px;
  }

  .pin-help {
    right: 10px;
    left: 10px;
    bottom: 10px;
  }

  .address-dialog {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }

  .address-dialog #addressForm {
    max-height: 100vh;
    height: 100%;
  }

  .address-dialog-head,
  .address-dialog-body,
  .address-dialog-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .order-summary {
    grid-template-columns: 1fr auto;
    gap: 11px;
  }

  .order-summary > span:nth-child(2),
  .order-summary > span:nth-child(3) {
    grid-column: 1;
  }

  .order-summary > svg {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .tracking-steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-left: 8px;
  }

  .tracking-steps li {
    min-height: 50px;
    grid-template-columns: 32px 1fr;
    justify-items: start;
    text-align: left;
  }

  .tracking-steps li::after {
    top: 31px;
    left: 15px;
    width: 2px;
    height: 19px;
  }

  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}
