html,
body,
.b2c-app {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.checkout-header {
  position: static;
  width: 100%;
  align-items: start;
}

.progress {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(18px, 4vw, 64px);
  align-items: start;
  padding-top: 18px;
}

.progress::before {
  top: 12px;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 0 6px;
}

.step-number {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.step > div {
  min-width: 0;
  padding-top: 2px;
  line-height: 1.1;
}

.step span:last-child {
  display: block;
  margin-top: 3px;
  line-height: 1.15;
}

.main-panel,
.guide-card,
.review-card,
.form-card,
.product-card,
.b2c-lifecycle-panel,
.safe-stop {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

.identity-upload-card {
  border-color: #99f6e4;
}

.identity-consent {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #ecfdf5;
}

.identity-consent strong {
  display: block;
  color: #0f766e;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.identity-consent p {
  margin: 4px 0 0;
  color: #344054;
}

.identity-file-field input[type="file"] {
  padding: 10px;
  background: #f8fafc;
}

.upload-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.upload-status.ready {
  background: #ecfdf5;
  color: #0f766e;
}

.secure-note {
  margin-top: 14px;
}

.document-status-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.document-status-list li,
.document-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.document-status-list strong {
  white-space: nowrap;
  color: #0f766e;
}

@media (min-width: 1025px) {
  .checkout-header {
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  }

  .page-shell {
    width: min(1120px, calc(100% - 64px));
  }
}

@media (max-width: 900px) {
  .checkout-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: 13px;
  }

  .progress::before {
    height: 5px;
  }

  .step {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
  }

  .step-number {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .step span:last-child {
    font-size: 11px;
  }

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

  .guide-card {
    order: -1;
  }
}

@media (max-width: 560px) {
  .checkout-header {
    padding: 12px;
  }

  .brand-lockup {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .progress {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 0;
  }

  .progress::before {
    display: none;
  }

  .step {
    display: none;
  }

  .step.active {
    display: grid;
  }

  .page-shell {
    width: calc(100% - 24px);
    padding: 22px 0;
  }

  .section-title,
  .page-title {
    font-size: clamp(30px, 10vw, 42px);
  }

  .notice-card,
  .form-card,
  .review-card,
  .guide-card,
  .b2c-review-section,
  .b2c-lifecycle-panel {
    padding: 16px;
  }

  .product-card {
    padding: 16px;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .b2c-summary-list div,
  .review-card dl div {
    grid-template-columns: 1fr;
  }

  .document-status-list li,
  .document-status-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
