[hidden] {
  display: none !important;
}
.account-main {
  max-width: 1020px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  min-height: 65svh;
}
.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 42px;
}
.account-heading p {
  font-size: 10px;
  color: #888;
  letter-spacing: 1px;
  margin: 0 0 13px;
}
.account-heading h1 {
  font-size: 25px;
  font-weight: 400;
  margin: 0;
}
.account-heading > span {
  font-size: 11px;
  color: #888;
  overflow-wrap: anywhere;
}
.account-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 60px;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.account-nav button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eee;
  font:
    12px Arial,
    sans-serif;
  padding: 19px 0;
  color: #777;
  cursor: pointer;
}
.account-nav button span {
  font-size: 10px;
  color: #bbb;
}
.account-nav button[aria-current] {
  color: #111;
  border-bottom-color: #111;
}
.account-nav > a {
  font-size: 11px;
  color: #999;
  margin-top: 35px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 0 0 18px;
  margin-bottom: 25px;
}
.panel-heading h2 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0;
}
.panel-heading > span {
  font-size: 10px;
  color: #999;
}
.account-content {
  max-width: 610px;
}
.account-content label,
#address-dialog label {
  display: block;
  font-size: 11px;
  color: #666;
  margin-bottom: 18px;
  line-height: 1.5;
}
.account-content input,
#address-dialog input:not([type="checkbox"]) {
  width: 100%;
  display: block;
  border: 1px solid #ddd;
  background: #fff;
  padding: 13px 12px;
  font:
    14px Arial,
    sans-serif;
  color: #111;
  margin-top: 7px;
  border-radius: 0;
}
.account-content input:focus,
#address-dialog input:focus {
  outline: 1px solid #111;
  outline-offset: 1px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.account-note {
  font-size: 11px;
  color: #999;
  line-height: 1.8;
  margin: 4px 0 25px;
}
.account-primary {
  display: block;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  text-align: center;
  font:
    10px Arial,
    sans-serif;
  letter-spacing: 1px;
  padding: 15px 18px;
  cursor: pointer;
  width: 100%;
}
.account-primary:disabled {
  background: #777;
  border-color: #777;
  cursor: wait;
}
.form-status {
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0;
  color: #666;
}
.address-card {
  padding: 20px;
  border: 1px solid #e8e8e8;
  margin-bottom: 15px;
}
.address-card h3 {
  font-size: 13px;
  font-weight: 400;
  margin: 0 0 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.address-card h3 span {
  font-size: 10px;
  color: #888;
}
.address-card p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  color: #777;
  overflow-wrap: anywhere;
}
.address-actions {
  display: flex;
  gap: 22px;
  margin-top: 17px;
}
.address-actions button {
  background: none;
  border: 0;
  text-decoration: underline;
  font-size: 10px;
  color: #777;
  padding: 0;
  cursor: pointer;
}
.address-empty {
  font-size: 13px;
  color: #888;
  line-height: 1.8;
  padding: 20px 0 35px;
}
.empty-orders {
  text-align: center;
  padding: 35px 24px;
}
.empty-mark {
  font-size: 33px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -3px;
  color: #ddd;
}
.empty-orders h3 {
  font-size: 18px;
  font-weight: 400;
  margin: 22px 0 15px;
}
.empty-orders p {
  font-size: 13px;
  line-height: 1.8;
  color: #888;
  max-width: 350px;
  margin: 0 auto 25px;
}
.empty-orders .account-primary {
  max-width: 260px;
  margin: 0 auto 20px;
}
.empty-orders > a:last-child {
  font-size: 11px;
  color: #777;
}
#address-dialog {
  padding: 34px;
  width: min(460px, calc(100% - 28px));
  max-width: none;
}
#address-dialog h2 {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 25px;
}
.account-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  font-size: 22px;
  background: white;
  border: 0;
  cursor: pointer;
}
.default-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.default-check input {
  accent-color: #111;
}
#account-error {
  font-size: 13px;
  color: #777;
  line-height: 1.8;
}
#account-error button,
#account-error a {
  background: #111;
  color: #fff;
  border: 0;
  padding: 13px 18px;
  font-size: 12px;
  cursor: pointer;
  display: inline-block;
}
#account-loading {
  font-size: 13px;
  color: #888;
  padding: 20px 0;
}
.header-account {
  font-size: 10px;
  color: #555;
  letter-spacing: 0.7px;
}
.header-right-group {
  justify-self: end;
  display: flex;
  gap: 22px;
  align-items: center;
}
.header-right-group .nav-link {
  padding: 15px 0;
}
@media (max-width: 700px) {
  .account-main {
    padding: 30px 20px 50px;
  }
  .account-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 25px;
  }
  .account-heading h1 {
    font-size: 23px;
  }
  .account-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .account-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .account-nav button {
    font-size: 11px;
    padding: 14px 0;
    line-height: 1.6;
  }
  .account-nav button span {
    display: none;
  }
  .account-nav > a {
    grid-column: 1/-1;
    margin-top: 8px;
    font-size: 10px;
  }
  .panel-heading > span {
    font-size: 9px;
  }
  .form-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .account-content input,
  #address-dialog input:not([type="checkbox"]) {
    font-size: 16px;
  }
  .header-right-group {
    gap: 12px;
  }
  .header-account {
    font-size: 9px;
  }
  .empty-orders {
    padding: 25px 5px;
  }
  #address-dialog {
    padding: 30px 22px;
  }
  .panel-heading {
    margin-bottom: 20px;
  }
}

/* Server-backed account page. */
#auth-panel {
  width: min(430px, 100%);
}
#auth-form,
#profile-form {
  border-top: 1px solid #111;
  padding-top: 25px;
}
#auth-form h2,
#profile-form h2,
.account-orders h2 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0 0 25px;
}
.order-address-title { display: block; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e5e5e5; font-size: 10px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.order-address-text { margin: 6px 0 9px !important; color: #666; font-size: 12px !important; line-height: 1.5; }
.order-address-edit { border: 1px solid #222; background: #fff; padding: 8px 10px; cursor: pointer; font: 10px Arial, sans-serif; letter-spacing: .08em; }
.order-address-edit:hover { background: #111; color: #fff; }
#auth-form label,
#profile-form label {
  display: block;
  font-size: 10px;
  color: #666;
  letter-spacing: 0.3px;
  margin: 0 0 17px;
}
#auth-form input,
#profile-form input {
  display: block;
  width: 100%;
  height: 47px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #fff;
  font: 14px Arial;
  color: #111;
}
#auth-form input:focus,
#profile-form input:focus {
  outline: 1px solid #111;
  outline-offset: 1px;
}
.secondary-action {
  display: block;
  width: 100%;
  border: 1px solid #ccc;
  background: #fff;
  color: #111;
  padding: 14px;
  font: 10px Arial;
  letter-spacing: 0.8px;
  cursor: pointer;
  margin-top: 8px;
}
#logout {
  width: auto;
  padding: 10px 18px;
  margin: 0;
}
#account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 70px;
}
#profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
#profile-form h2,
#profile-form .account-primary {
  grid-column: 1/-1;
}
.account-orders {
  border-top: 1px solid #111;
  padding-top: 25px;
}
.account-orders #orders p {
  font-size: 11px;
  line-height: 1.7;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  color: #666;
}

.delivery-payment { margin-top: 16px; padding: 16px; border: 1px solid #d8d3cd; background: #f7f5f2; }
.delivery-payment > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.delivery-payment > div span { font-size: 10px; letter-spacing: .14em; color: #777; }
.delivery-payment > div strong { font-size: 18px; }
.delivery-payment p { margin: 8px 0 0 !important; font-size: 12px !important; color: #666 !important; }
.delivery-payment a { display: block; margin-top: 13px; padding: 13px 16px; background: #111; color: #fff; font-size: 10px; letter-spacing: .12em; text-align: center; text-decoration: none; }
.delivery-payment.paid { border-color: #a6c2ad; background: #f2f8f3; }
.delivery-payment.expired, .delivery-payment.cancelled { border-color: #d5aaa3; background: #fff4f2; }
@media (max-width: 700px) {
  #account-panel {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  #profile-form {
    grid-template-columns: 1fr;
  }
  #profile-form h2,
  #profile-form .account-primary {
    grid-column: 1;
  }
}
.order-cancel {
  width: calc(100% - 36px);
  margin: 10px 18px 18px;
  padding: 11px 14px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #777;
  font: inherit;
  font-size: 10px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.order-cancel:hover { border-color: #111; color: #111; background: #fafafa; }
.order-cancel:disabled { opacity: .5; cursor: wait; }

/* Scoped overrides prevent legacy paragraph resets from collapsing spacing. */
.account-orders #orders .account-order .order-variant {
  margin: 0 !important;
  padding: 14px 18px 0 !important;
  border: 0 !important;
  font-size: 11px !important;
  line-height: 1.6;
}
.account-order .order-top > div { min-width: 0; }
.account-orders #orders .order-top p { overflow-wrap: anywhere; }
.account-order .order-current { flex-wrap: wrap; gap: 10px; }
.account-order .order-current small { line-height: 1.5; }
.account-order .order-pay,
.account-order .order-manager,
.account-order .order-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: calc(100% - 36px);
  min-height: 44px;
  margin: 0 18px 10px;
  padding: 12px 14px;
  font: 10px/1.5 Arial, sans-serif;
  letter-spacing: .7px;
  text-align: center;
  text-decoration: none;
}
.account-order .order-manager { border: 1px solid #d7d7d7; background: #fff; color: #111; }
.account-order .order-cancel { margin-bottom: 18px; }
.account-order .delivery-payment { margin: 0 18px 18px; }
@media (max-width: 700px) {
  .account-orders #orders .account-order .order-variant { padding: 12px 15px 0 !important; }
  .account-order .order-pay, .account-order .order-manager, .account-order .order-cancel {
    width: calc(100% - 30px); margin-left: 15px; margin-right: 15px;
  }
  .account-order .order-top { gap: 12px; }
  .account-order .delivery-payment { margin-left: 15px; margin-right: 15px; }
}
.order-payment-failed {
  margin: 14px 0 8px;
  color: #8b1e1e;
  font-size: 13px;
  line-height: 1.45;
}
.address-picker-dialog { width: min(900px, calc(100% - 24px)); max-width: none; padding: 0; border: 0; background: #fff; }
.address-picker-dialog::backdrop { background: #000b; }
.address-picker-shell { display: grid; gap: 12px; padding: 18px; }
.address-picker-shell header, .address-picker-shell footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.address-picker-shell header button { border: 0; background: #fff; font-size: 24px; cursor: pointer; }
.address-picker-fields { display: flex; gap: 10px; align-items: end; }
.address-picker-fields label, .address-picker-street, .address-picker-index { flex: 1; margin: 0; font-size: 11px; color: #666; }
.address-picker-shell input { display: block; width: 100%; margin-top: 6px; padding: 11px; border: 1px solid #ddd; font: 14px Arial; }
.address-picker-fields button, .address-picker-shell footer button { min-height: 40px; border: 1px solid #111; background: #111; color: #fff; padding: 0 14px; font: 10px Arial; letter-spacing: .08em; cursor: pointer; }
.address-picker-tabs { display: none; gap: 6px; }
.address-picker-tabs button { flex: 1; min-height: 36px; border: 1px solid #ddd; background: #fff; color: #666; font: 10px Arial; letter-spacing: .08em; }
.address-picker-tabs button.active { border-color: #111; background: #111; color: #fff; }
.address-picker-workspace { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 360px; border: 1px solid #ddd; }
#address-picker-map { min-height: 360px; }
#address-picker-list { max-height: 360px; overflow: auto; padding: 8px; }
.address-pick-item { display: block; width: 100%; padding: 12px; border: 1px solid #eee; background: #fff; text-align: left; cursor: pointer; font: 12px/1.4 Arial; }
.address-pick-item.active, .address-pick-item:hover { border-color: #111; background: #f7f7f7; }
.address-picker-shell footer { justify-content: flex-end; }
.address-picker-shell footer button:first-child { background: #fff; color: #111; }
@media (max-width: 700px) { .address-picker-tabs { display: flex; } .address-picker-fields { display: flex; flex-direction: column; } .address-picker-workspace { display: block; min-height: 0; } #address-picker-map { width: 100%; min-height: 310px; } #address-picker-list { display: none; width: 100%; max-height: 310px; } .address-picker-workspace.list-view #address-picker-map { display: none; } .address-picker-workspace.list-view #address-picker-list { display: block; } .address-picker-fields button { width: 100%; } }
