.checkoutProgress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 30px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.checkoutProgress li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 11px 4px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.25;
}
.checkoutProgressNumber {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.8rem;
  block-size: 1.8rem;
  border-radius: 50%;
  background: #f6f3f4;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.checkoutProgress li.complete {
  color: var(--wine);
}
.checkoutProgress li[aria-current="step"] {
  border-color: var(--wine);
  color: var(--wine);
  font-weight: 600;
}
.checkoutProgress li[aria-current="step"] .checkoutProgressNumber {
  background: var(--wine);
  color: #fff;
}
.checkoutPage [hidden] {
  display: none !important;
}
.checkoutPage {
  max-inline-size: 850px;
}
.checkoutPage > h1 {
  margin-block-end: 8px;
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
}
.checkoutPage > p {
  margin-block-end: 26px;
  text-align: center;
}
.checkoutPage [data-checkout-heading]:focus,
.checkoutPage .checkoutExamplePanel h2:focus {
  outline: none;
}
.checkoutPage .checkoutLayout {
  margin-top: 26px;
  grid-template-columns: minmax(0, 1fr);
}
.checkoutPage .checkoutLayout > * {
  min-inline-size: 0;
}
.checkoutPanel fieldset {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.checkoutPanel legend {
  padding: 0;
  margin-block-end: 10px;
  font-size: clamp(18px, 2.4vw, 24px);
}
.checkoutPage #checkout .fields {
  grid-template-columns: minmax(0, 1fr);
}
.checkoutPage #checkout input:not([type="checkbox"], [type="radio"], [type="hidden"]),
.checkoutPage #checkout select,
.checkoutPage #checkout textarea {
  min-block-size: 48px;
  padding: 10px 17px;
  border-radius: 28px;
  border: 1px solid #eae7e7;
  background: #f6f5f5;
}
.checkoutPage #checkout textarea {
  border-radius: 16px;
  resize: vertical;
}
.checkoutPanel label:has([aria-invalid="true"]) {
  color: var(--wine);
}
.checkoutPanel [aria-invalid="true"] {
  border-color: var(--accent);
}
.checkoutCardOptions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-block: 14px 20px;
}
.checkoutCardOptions label {
  position: relative;
  display: block;
  margin: 0;
}
.checkoutCardOptions input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.checkoutCardOptions span {
  display: grid;
  min-height: 48px;
  padding: 8px 6px;
  align-content: center;
  border: 1px solid #e8dfe3;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: .83rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}
.checkoutCardOptions input:checked + span {
  border-color: var(--wine);
  background: #f9f1f4;
  color: var(--wine);
  font-weight: 600;
}
.checkoutCardOptions input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.checkoutCharacterCount {
  margin: 0;
  text-align: end;
}
.checkoutCardPaper {
  padding: clamp(16px, 4vw, 34px);
  border: 1px solid #ebe6e7;
  border-radius: 20px;
  background: #fffdfb;
}
.checkoutCardPaper label { text-align: center; }
.checkoutPage #checkout .checkoutCardPaper textarea {
  background: white;
  text-align: center;
}
.checkoutCardPaperFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 12px;
}
.checkoutCardPaperFoot img { display: block; max-inline-size: 50%; height: auto; }
.checkoutUnsigned { margin-block-start: 12px; }
.checkoutActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-block: 18px 8px;
}
.checkoutActions .btn {
  justify-content: center;
  min-height: 46px;
}
.checkoutUseSender {
  margin-block: 0 14px;
}
.checkoutExamplePanel {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid #e8dfe3;
  border-radius: 16px;
}
.checkoutExamplePanel h2 {
  margin-top: 0;
}
.checkoutExamplePanel dl {
  margin: 0;
}
.checkoutExamplePanel dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 14px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.checkoutExamplePanel dl > div:last-child {
  border-bottom: 0;
}
.checkoutExamplePanel dt {
  font-weight: 600;
}
.checkoutExamplePanel dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 550px) {
  .checkoutProgress {
    margin-bottom: 20px;
  }
  .checkoutProgress li {
    flex-direction: column;
    gap: 4px;
    font-size: .78rem;
    text-align: center;
  }
  .checkoutProgressNumber {
    flex: none;
    inline-size: 1.65rem;
    block-size: 1.65rem;
  }
  .checkoutActions .btn:not(.secondary) {
    flex: 1 0 190px;
  }
  .checkoutActions .btn.secondary {
    flex: 1 0 auto;
  }
}
