.checkout-section {
  padding: 40px 0 70px;
}

.checkout-grid {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 30px;
  align-items: flex-start;
}

.panel {
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  flex: 1 1 380px;
}

.panel h2 {
  font-size: 17px;
  margin-bottom: 18px;
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #201417);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid #e5d9d9;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.payment-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.payment-option {
  flex: 1;
  min-width: 140px;
  border: 1px solid #e5d9d9;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.payment-option input {
  width: auto;
}
.payment-option:has(input:checked) {
  border-color: var(--brand);
  background: rgba(255, 82, 59, 0.06);
}
.payment-option i {
  color: var(--brand);
}

.bkash-instructions {
  background: #fff7f0;
  border: 1px dashed #ffcaa8;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.bkash-instructions p {
  font-size: 13px;
  color: #7a5a3a;
  margin-bottom: 10px;
}
.bkash-instructions .field {
  margin-bottom: 0;
}

.bkash-instructions.hidden {
  display: none;
}

.w-100 {
  width: 100%;
}

.checkout-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}
.checkout-error.show {
  display: block;
}

.order-summary {
  max-width: 380px;
}
.summary-product {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f2f2f2;
  margin-bottom: 16px;
}
.summary-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.summary-product h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.summary-product p {
  font-size: 13px;
  color: var(--ink-soft, #777);
}

.summary-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.summary-qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.summary-qty-box button {
  width: 30px;
  height: 30px;
  border: none;
  background: #f6f6f6;
  cursor: pointer;
}
.summary-qty-box input {
  width: 36px;
  height: 30px;
  border: none;
  text-align: center;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink-soft, #777);
}
.summary-row.total {
  font-size: 17px;
  font-weight: 700;
  color: #201417;
  border-top: 1px solid #f2f2f2;
  padding-top: 12px;
  margin-top: 8px;
}

.checkout-success {
  text-align: center;
  padding: 50px 30px;
  max-width: 480px;
  margin: 0 auto;
}
.checkout-success .fa-check-circle {
  font-size: 44px;
  color: #2fa84f;
  margin-bottom: 16px;
}
.checkout-success h2 {
  margin-bottom: 10px;
}
.checkout-success p {
  color: var(--ink-soft, #777);
  margin-bottom: 22px;
}

@media only screen and (max-width: 700px) {
  .checkout-grid {
    flex-direction: column-reverse;
  }
}
