.checkout-page .pagecartbox {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.checkout-page .pg-cart-item {
  width: auto;
  margin-top: 0;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
  background: #fff;
  overflow: hidden;
}

.checkout-page .pg-cart-item:not(.checkout-panel) {
  position: sticky;
  top: 16px;
}

.checkout-page .titlebox {
  margin: 0;
  padding: 12px 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.checkout-panel {
  padding: 8px 8px 20px;
}

.checkout-steps {
  list-style: none;
  margin: 0;
  padding: 8px 12px 0;
}

.checkout-step {
  margin: 0 0 14px;
  border: 1px solid #ece7dc;
  border-radius: 14px;
  background: #fff;
}

.checkout-step.is-locked {
  display: none;
}

.checkout-step.is-enter,
.checkout-detail.is-enter,
.checkout-sub2.is-enter,
.checkout-payextra.is-enter,
.checkout-next.is-enter {
  animation: checkout-in 0.7s ease;
}

@keyframes checkout-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.checkout-step__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
  font-family: "RobotoCondensedBold", sans-serif;
  font-size: 18px;
  color: #1c1c1c;
}

.checkout-step__head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffc501;
  font-size: 14px;
}

.checkout-step__summary {
  margin: 4px 16px 0 54px;
  min-height: 0;
  color: #6b6458;
  font-size: 14px;
}

.checkout-step__summary:empty {
  display: none;
}

.checkout-step__body {
  padding: 12px 16px 16px;
}

.checkout-field {
  margin-bottom: 12px;
}

.checkout-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #3a342c;
}

.checkout-field label em {
  font-style: normal;
  color: #8a8175;
}

.checkout-field .checkout-hint {
  margin-top: 6px;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form select,
.checkout-form textarea,
.checkout-form .select2-container .select2-selection--single {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #3d7ea6;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "RobotoCondensedRegular", sans-serif;
  font-size: 16px;
  color: #1c1c1c;
  background: #f4f9fc;
}

.checkout-form textarea {
  min-height: 96px;
  resize: vertical;
}

.checkout-form .select2-container {
  width: 100% !important;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.checkout-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #ffc501;
  color: #1c1c1c;
  font-family: "RobotoCondensedBold", sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.checkout-next:disabled {
  background: #e6e1d8;
  color: #9a9288;
  cursor: default;
}

.checkout-next[hidden] {
  display: none !important;
}

.checkout-sub {
  margin: 14px 0 4px 22px;
  padding: 12px 12px 4px 14px;
  border-left: 3px solid #ffc501;
  border-radius: 0 12px 12px 0;
  background: #f7f4ee;
}

.checkout-sub__prompt {
  margin: 0 0 10px;
  color: #8a8175;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-sub2 {
  margin: 4px 0 8px 16px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid #f0d78c;
}

.checkout-sub2[hidden],
.checkout-payextra[hidden] {
  display: none !important;
}

.checkout-payextra {
  margin-top: 12px;
}

.checkout-wait {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #6b6458;
  font-size: 14px;
}

.checkout-wait[hidden] {
  display: none !important;
}

.checkout-wait:before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #d7e3ee;
  border-top-color: #3d7ea6;
  border-radius: 50%;
  animation: checkout-spin 0.7s linear infinite;
}

@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

.choice-grid_sub {
  margin-bottom: 12px;
}

.choice-card_sub {
  padding: 10px 12px;
  border-style: dashed;
  border-radius: 8px;
  background: #fff;
}

.choice-card_sub span {
  font-size: 15px;
}

.choice-card {
  display: block;
  position: relative;
  border: 1px solid #e4ddd0;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: #fff;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.choice-card:has(input:checked) {
  border-color: #ffc501;
  box-shadow: inset 0 0 0 2px #ffc501;
  background: #fffaf0;
}

.checkout-hint {
  margin: 8px 0 0;
  color: #6b6458;
  font-size: 14px;
  line-height: 1.45;
}

.checkout-hint_delivery {
  margin-top: 14px;
}

.checkout-hint_cod {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff6e0;
  color: #6b5314;
}

.checkout-pickup-title {
  margin: 8px 0 0;
  font-family: "RobotoCondensedBold", sans-serif;
  font-size: 16px;
}

.checkout-company {
  margin-top: 12px;
}

.checkout-form .errorMessage {
  display: block;
  margin-top: 4px;
  color: #b42318;
  font-size: 13px;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 16px 0 0;
}

.checkout-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 180px;
  box-sizing: border-box;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-indent: 0.04em;
  position: static;
  top: auto;
  left: auto;
  font-size: 14px;
}

.checkout-actions .btn:after {
  content: none;
  display: none;
}

.checkout-actions .backToShop {
  background: #fff;
}

.checkout-actions .submit {
  background: #ffc501;
  border-color: #ffc501;
}

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

  .checkout-page .pg-cart-item:not(.checkout-panel) {
    position: static;
  }

  .checkout-next {
    width: 100%;
  }

  .checkout-actions {
    flex-direction: column;
  }

  .checkout-actions .btn {
    width: 100%;
    flex: none;
  }

  .checkout-sub {
    margin-left: 12px;
  }

  .checkout-sub2 {
    margin-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-step.is-enter,
  .checkout-detail.is-enter,
  .checkout-sub2.is-enter,
  .checkout-payextra.is-enter,
  .checkout-next.is-enter,
  .checkout-wait:before {
    animation: none;
  }
}
