.checkout-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.detail-buy-row input,
.checkout-fields input,
.checkout-fields select,
.checkout-fields textarea,
.checkout-line input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}

.detail-buy-row button,
.checkout-actions button {
  min-height: 44px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.checkout-actions button:disabled {
  cursor: not-allowed;
  border-color: var(--line);
  color: #9aa7a3;
  background: #f4f6f5;
}

.detail-buy-row button:first-of-type,
.checkout-actions button:first-child {
  color: var(--green);
  background: #eef8f4;
}

.detail-note {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
}

.detail-note strong {
  color: var(--ink);
}

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

.checkout-panel,
.checkout-summary {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-lines {
  display: grid;
  gap: 10px;
}

.checkout-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 86px 110px 72px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-line img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: #e7eeeb;
}

.checkout-line strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.checkout-line span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-line b {
  color: var(--red);
}

.checkout-line button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-fields textarea {
  min-height: 86px;
  resize: vertical;
}

.checkout-fields small {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  background: var(--soft);
}

.checkout-fields small a {
  color: var(--green);
  text-decoration: none;
}

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

.coupon-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.coupon-panel > span {
  font-weight: 700;
}

.coupon-list {
  display: grid;
  gap: 8px;
}

.coupon-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #cfe0db;
  border-radius: 8px;
  background: #fff;
}

.coupon-option input {
  margin-top: 3px;
}

.coupon-option strong,
.coupon-option small {
  display: block;
}

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

.coupon-option.is-disabled {
  opacity: 0.58;
}

.coupon-empty {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
}

.checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.checkout-summary {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 12px;
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.checkout-summary b {
  color: var(--red);
}

.checkout-summary .summary-payable {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 17px;
}

.checkout-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
