* {
  box-sizing: border-box;
}

:root {
  --orange: #ff4f12;
  --bg: #f6f6f6;
  --border: #e8e8e8;
  --text: #1f2937;
  --muted: #6b7280;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.account-header {
  height: 70px;
  padding: 0 max(20px, 4vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--orange);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #555;
  font-size: 14px;
}

.account-shell {
  width: min(1220px, 95%);
  margin: 28px auto 70px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.account-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  position: sticky;
  top: 20px;
}

.user-box {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.user-box small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.account-nav {
  padding: 10px;
  display: grid;
  gap: 4px;
}

.account-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  color: #444;
}

.account-nav button:hover,
.account-nav button.active {
  color: var(--orange);
  background: #fff2ec;
  font-weight: 700;
}

.account-content {
  min-width: 0;
}

.account-section {
  display: none;
}

.account-section.active {
  display: block;
}

.section-title {
  min-height: 62px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-title h1 {
  margin: 0;
  font-size: 29px;
}

.section-title p,
.panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.summary-card {
  min-height: 108px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.summary-card:hover {
  border-color: #ffb294;
}

.summary-icon {
  font-size: 27px;
}

.summary-card strong,
.summary-card span {
  display: block;
}

.summary-card strong {
  font-size: 18px;
}

.summary-card div span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.panel-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 20px;
}

.text-button,
.close-button {
  border: 0;
  background: transparent;
  color: var(--orange);
}

.close-button {
  font-size: 25px;
}

.primary-button {
  border: 0;
  border-radius: 9px;
  padding: 12px 18px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
}

.account-alert {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 9px;
  background: #edfaee;
  color: #166534;
}

.account-alert.error {
  background: #fff0f0;
  color: #9f1c1c;
}

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

.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.order-main {
  padding: 18px 20px;
  display: grid;
  grid-template-columns:
    1.4fr 1fr 1fr auto;
  gap: 20px;
  align-items: center;
}

.order-number {
  font-weight: 850;
}

.order-date,
.order-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.order-total {
  font-size: 17px;
  font-weight: 850;
}

.status-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff2ec;
  color: #c4410c;
  font-size: 12px;
  font-weight: 800;
}

.order-detail-button {
  padding: 9px 13px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.progress {
  padding: 13px 20px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.progress-step {
  position: relative;
  padding-top: 18px;
  text-align: center;
  color: #999;
  font-size: 11px;
}

.progress-step::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ddd;
  z-index: 2;
}

.progress-step::after {
  content: "";
  position: absolute;
  height: 2px;
  background: #ddd;
  left: 0;
  right: 0;
  top: 8px;
  z-index: 1;
}

.progress-step:first-child::after {
  left: 50%;
}

.progress-step:last-child::after {
  right: 50%;
}

.progress-step.done {
  color: #222;
  font-weight: 700;
}

.progress-step.done::before,
.progress-step.done::after {
  background: var(--orange);
}

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

.address-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.address-card.default {
  border-color: #ffac8d;
}

.address-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.address-label {
  font-weight: 850;
}

.default-label {
  color: var(--orange);
  font-size: 11px;
  font-weight: 850;
}

.address-body {
  margin-top: 13px;
  color: #555;
  line-height: 1.55;
  font-size: 14px;
}

.address-actions {
  display: flex;
  gap: 12px;
  margin-top: 17px;
}

.address-actions button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.address-form {
  margin-top: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

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

.form-grid small {
  font-weight: 400;
  color: var(--muted);
}

.form-grid input,
.form-grid select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
}

.form-grid input:focus,
.form-grid select:focus {
  outline: 2px solid rgba(255,79,18,.14);
  border-color: var(--orange);
}

.checkbox {
  flex-direction: row !important;
  align-items: center;
}

.checkbox input {
  width: auto;
}

.profile-card {
  max-width: 750px;
}

.empty-state {
  padding: 35px 15px;
  text-align: center;
  color: var(--muted);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.46);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 27px;
  background: #fff;
  border-radius: 16px;
}

.modal-close {
  position: absolute;
  right: 17px;
  top: 13px;
  border: 0;
  background: transparent;
  font-size: 27px;
}

.order-items {
  margin: 25px 0;
}

.order-item {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.order-item img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
}

.order-item-title {
  font-size: 13px;
  font-weight: 750;
}

.order-item-variant {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.tracking-box {
  margin: 20px 0;
  padding: 15px;
  border-radius: 10px;
  background: #f7f7f7;
}

@media (max-width: 850px) {

  .account-shell {
    display: block;
    margin-top: 15px;
  }

  .account-sidebar {
    position: static;
    margin-bottom: 18px;
  }

  .user-box {
    display: none;
  }

  .account-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .account-nav button {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

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

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

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

  .header-actions span {
    display: none;
  }
}

@media (max-width: 560px) {

  .account-header {
    height: 60px;
    padding: 0 15px;
  }

  .brand {
    font-size: 26px;
  }

  .account-shell {
    width: calc(100% - 20px);
  }

  .section-title {
    display: block;
  }

  .section-title .primary-button {
    margin-top: 15px;
  }

  .section-title h1 {
    font-size: 25px;
  }

  .panel-card {
    padding: 17px;
  }

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

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

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

  .progress {
    padding-left: 8px;
    padding-right: 8px;
  }

  .progress-step {
    font-size: 9px;
  }

  .modal {
    padding: 8px;
  }

  .modal-card {
    padding: 22px 16px;
  }
}

/* ZELMIO_ACCOUNT_LOGOUT_STYLE */

.account-logout-button {
  appearance: none;
  border: 1px solid #d9dde5;
  background: #fff;
  color: #b42318;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease;
}

.account-logout-button:hover {
  background: #fff5f4;
  border-color: #f0b4ae;
}

.account-logout-button:active {
  transform: translateY(1px);
}

.account-logout-button:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 640px) {
  .account-header .header-actions {
    gap: 8px;
  }

  .account-logout-button {
    padding: 7px 10px;
    font-size: 13px;
  }
}

