.store-logo {
  background: #fff;
}

.brand-image,
.footer-logo {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff url("/assets/doublelin-logo.jpg") center center / 93% auto
    no-repeat;
}

.footer-logo {
  width: 280px;
  height: 50px;
}

.store-flash {
  width: min(1180px, 90%);
  margin: 18px auto 0;
  padding: 13px 16px;
  border: 1px solid #b9d4ee;
  background: #eef7ff;
  color: #173e65;
}

.store-flash.error {
  border-color: #efb1ae;
  background: #fff1f0;
  color: #8f2722;
}

.checkout-page,
.status-page {
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 42px 0 70px;
}

.checkout-page h1,
.status-page h1 {
  margin: 4px 0 22px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-bottom: 3px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.checkout-step b {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-radius: 50%;
  background: var(--mist);
}

.checkout-step.active {
  border-color: var(--red);
  color: var(--navy);
}

.checkout-step.active b {
  color: #fff;
  background: var(--red);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.checkout-card,
.status-panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 35px rgba(9, 47, 95, 0.07);
}

.checkout-card h2,
.checkout-card h3 {
  margin-top: 0;
  color: var(--navy);
}

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

.form-field {
  display: grid;
  gap: 6px;
}

.form-field.wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #bfcbd6;
  background: #fff;
}

.field-error {
  color: #a62f2a;
  font-size: 11px;
}

.checkout-actions,
.recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.checkout-actions .button,
.recovery-actions .button {
  border: 0;
  cursor: pointer;
}

.button.secondary {
  color: var(--navy);
  background: var(--mist);
}

.checkout-summary {
  position: sticky;
  top: 20px;
  padding: 24px;
  background: var(--mist);
}

.checkout-summary h2 {
  margin-top: 0;
  color: var(--navy);
}

.summary-items {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #cfd8df;
  font-size: 12px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
}

.summary-line.total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #cfd8df;
  color: var(--navy);
  font-size: 18px;
}

.choice-list {
  display: grid;
  gap: 12px;
}

.choice {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 17px;
  border: 1px solid #cdd7df;
  background: #fff;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--navy);
  box-shadow: inset 4px 0 var(--red);
}

.choice input {
  margin-top: 4px;
}

.choice strong,
.choice small {
  display: block;
}

.choice small {
  margin-top: 4px;
  color: var(--muted);
}

.choice-price {
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}

.checkout-notice,
.incident {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 4px solid #f0a533;
  background: #fff8e8;
  color: #5f4a24;
}

.checkout-notice.good {
  border-color: #2f8a58;
  background: #edf8f1;
  color: #235c3d;
}

.checkout-notice.error {
  border-color: var(--red);
  background: #fff1f0;
  color: #8f2722;
}

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

.address-box,
.review-section {
  padding: 17px;
  border: 1px solid var(--line);
  background: #fbfcfd;
}

.address-box label {
  display: block;
  cursor: pointer;
}

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

.review-section h3 {
  margin-bottom: 8px;
}

.status-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: #2f8a58;
  font-size: 30px;
}

.status-icon.warn {
  background: #df8b21;
}

.order-detail-list {
  max-width: 520px;
  margin: 22px auto;
  text-align: left;
}

.recovery-page {
  width: min(720px, 90%);
  margin: 80px auto;
  padding: 34px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(9, 47, 95, 0.08);
}

.cart-page .summary > .button {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 850px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }
}

@media (max-width: 600px) {
  .checkout-steps {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .checkout-step {
    justify-content: center;
    padding-inline: 3px;
    font-size: 0;
  }

  .form-grid,
  .address-compare,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .form-field.wide {
    grid-column: auto;
  }

  .choice {
    grid-template-columns: 22px 1fr;
  }

  .choice-price {
    grid-column: 2;
  }

  .checkout-card,
  .status-panel {
    padding: 20px;
  }
}
