/* OneMkan customer experience layer.
   Presentation only: ownership, support, order and payment authority remain server-owned. */

.account-page,
.tracking-page {
  color: #0f1111;
}

.account-page {
  padding: 30px 0 64px;
}

.account-page a:not(.button) {
  color: #1b5e92;
  text-underline-offset: 2px;
}

.account-page .section-heading {
  margin-bottom: 20px;
}

.account-page .section-heading h1,
.account-page > h1 {
  margin: 4px 0 8px;
  color: #0f1111;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.account-page .section-heading > p,
.account-page > p {
  color: #4b5563;
}

.account-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
  background: #fff;
}

.account-identity-copy {
  min-width: 0;
}

.account-identity-copy .eyebrow {
  margin-bottom: 4px;
}

.account-identity-copy h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 3vw, 30px);
}

.account-identity-copy p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #4b5563;
  font-size: 13px;
}

.account-identity-actions {
  flex: 0 0 auto;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.account-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
  background: #fff;
}

.account-panel-wide {
  grid-column: 1 / -1;
}

.account-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.account-panel h2,
.account-panel h3 {
  margin: 0;
  color: #0f1111;
  font-size: 18px;
  line-height: 1.25;
}

.account-panel p {
  color: #4b5563;
}

.account-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eaeded;
}

.account-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eaeded;
}

.account-list > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-list-main {
  min-width: 0;
}

.account-list-main strong,
.account-list-main a {
  overflow-wrap: anywhere;
}

.account-list-meta {
  margin-top: 3px;
  color: #4b5563;
  font-size: 12px;
}

.account-list-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.account-list-actions form {
  margin: 0;
}

.account-inline-button {
  min-height: 32px;
  border: 1px solid #aeb4bb;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: #0f1111;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.account-inline-button:hover {
  background: #f3f4f6;
}

.account-empty {
  margin: 0;
  padding: 15px;
  border: 1px dashed #c7ccd1;
  border-radius: 5px;
  background: #f8f9fa;
  color: #4b5563;
  font-size: 13px;
}

.account-auth-page {
  max-width: 560px;
  padding-top: 42px;
  padding-bottom: 72px;
}

.account-auth-card,
.account-form-card,
.receipt-card {
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid #d5d9d9;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15,17,17,.07);
}

.account-auth-card .section-heading {
  margin-bottom: 0;
}

.account-auth-card .form-stack,
.account-form-card .form-stack {
  margin-top: 20px;
}

.account-auth-card > p:last-child,
.account-auth-links {
  margin-bottom: 0;
  color: #4b5563;
  font-size: 13px;
}

.account-alert {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #e0a39d;
  border-radius: 5px;
  background: #fff4f2;
  color: #84251d;
  font-size: 13px;
  font-weight: 650;
}

.order-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, auto);
  gap: 18px;
  align-items: center;
  padding: 17px 19px;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
  background: #fff;
}

.order-summary-card h1 {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 3vw, 30px);
}

.order-summary-fact {
  min-width: 130px;
}

.order-summary-fact span {
  display: block;
  color: #4b5563;
  font-size: 11px;
}

.order-summary-fact strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.order-stack {
  display: grid;
  gap: 14px;
}

.order-panel {
  padding: 18px;
  border: 1px solid #d5d9d9;
  border-radius: 6px;
  background: #fff;
}

.order-panel h2,
.order-panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.order-item-list,
.order-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-item-list li,
.order-history-list li {
  padding: 11px 0;
  border-top: 1px solid #eaeded;
  color: #27313a;
}

.order-item-list li:first-child,
.order-history-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.order-support-panel {
  position: sticky;
  top: 104px;
}

.order-support-panel .form-stack {
  margin-top: 12px;
}

.receipt-page {
  max-width: 960px;
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eaeded;
}

.receipt-head h1 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.receipt-meta {
  min-width: 230px;
  color: #4b5563;
  font-size: 12px;
}

.receipt-meta p {
  margin: 0 0 5px;
}

.receipt-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
}

.receipt-table th,
.receipt-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #eaeded;
  text-align: left;
  vertical-align: top;
}

.receipt-table th {
  background: #f5f6f7;
  color: #27313a;
  font-size: 12px;
}

.receipt-total {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin: 17px 0 0;
  font-size: 16px;
}

.receipt-note {
  margin: 18px 0 0;
  padding: 11px 12px;
  border-radius: 5px;
  background: #f5f6f7;
  color: #4b5563;
  font-size: 12px;
}

/* Tighten existing guest tracking/support surfaces to match the dense store. */
.tracking-page {
  min-height: calc(100vh - 150px);
  padding: 34px 0 64px;
  background: #f3f4f6;
}

.tracking-shell {
  max-width: 900px;
}

.tracking-intro {
  margin-bottom: 14px;
}

.tracking-intro h1 {
  margin: 3px 0 6px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.tracking-card {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(15,17,17,.07);
}

.tracking-status,
.tracking-facts div,
.tracking-list li,
.tracking-note,
.support-cta,
.support-guidance {
  border-radius: 5px;
}

.tracking-facts div,
.tracking-list li {
  background: #fff;
}

.support-guidance {
  background: #f5f6f7;
}

@media (max-width: 900px) {
  .account-dashboard-grid,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .account-panel-wide {
    grid-column: auto;
  }

  .order-support-panel {
    position: static;
  }

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

  .order-summary-card > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .account-page {
    padding-top: 20px;
  }

  .account-auth-page {
    padding-top: 26px;
  }

  .account-identity,
  .account-panel-head,
  .receipt-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .account-list-actions {
    justify-content: flex-start;
  }

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

  .order-summary-card > :first-child {
    grid-column: auto;
  }

  .order-summary-fact {
    min-width: 0;
  }

  .receipt-meta {
    min-width: 0;
  }
}

/* Shared order self-service navigation. */
.support-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.support-switch a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid #b7bdc4;
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: #27313a;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.support-switch a:hover,
.support-switch a:focus-visible {
  background: #f3f4f6;
  color: #0f1111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-switch a[aria-current="page"] {
  border-color: #174f78;
  background: #eef4fb;
  color: #174f78;
}
