.checkout-items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--c-gray-200, #e5e7eb);
}

.checkout-item__media {
  flex: 0 0 auto;
}

.checkout-item__media img {
  display: block;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: var(--radius-md, 0.375rem);
  background: var(--c-gray-100, #f3f4f6);
}

.checkout-item__body {
  flex: 1 1 auto;
  min-width: 0;
}

.checkout-item__title {
  display: block;
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-item__title:hover {
  color: var(--c-accent, #f76300);
}

.checkout-item__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--c-gray-600, #4b5563);
}

.checkout-item__side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.checkout-item__subtotal {
  font-size: 0.9375rem;
  white-space: nowrap;
}

.checkout-total {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem 0 0;
  font-size: 1.125rem;
}

.checkout-total span {
  font-weight: 700;
  color: var(--c-accent, #f76300);
}

.checkout-delivery__summary {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.checkout-delivery__summary input {
  margin-top: 0.2rem;
}

.checkout-delivery--disabled {
  opacity: 0.55;
  pointer-events: none;
}

.checkout-np-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--c-gray-200, #e5e7eb);
  border-radius: var(--radius-md, 0.375rem);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.checkout-np-selector:hover {
  border-color: var(--c-gray-400, #9ca3af);
}

.checkout-np-selector__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
}

.checkout-payments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
  align-items: stretch;
}

.checkout-pay {
  display: block;
  margin: 0;
  cursor: pointer;
  min-width: 0;
}

.checkout-pay__card {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 1rem;
  border: 1px solid var(--c-gray-300, #d1d5db);
  border-radius: var(--radius-md, 0.375rem);
  background: #fff;
}

.checkout-pay__head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkout-pay__input {
  position: static;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0.2rem 0 0;
  opacity: 1;
  clip: auto;
}

.checkout-pay:has(.checkout-pay__input:checked) .checkout-pay__card {
  border-color: var(--c-accent, #f76300);
  box-shadow: 0 0 0 1px var(--c-accent, #f76300);
}

.checkout-pay__details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-gray-200, #e5e7eb);
}

.checkout-form > section {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
}

.checkout-form > section:last-of-type {
  margin-bottom: 0;
}

.checkout-comment {
  clear: both;
  display: block;
  width: 100%;
}

.checkout-submit {
  margin-top: 1rem;
}

.checkout-np-modal {
  max-width: min(56rem, 100%);
  width: 100%;
}

.checkout-np-iframe {
  display: block;
  width: 100%;
  height: min(70vh, 36rem);
  border: 0;
}

@media (max-width: 768px) {
  .checkout-item {
    flex-wrap: wrap;
  }

  .checkout-item__side {
    width: 100%;
    justify-content: flex-end;
  }

  .checkout-payments {
    grid-template-columns: 1fr;
  }

  .checkout-submit {
    display: block;
  }

  .checkout-submit .text-right {
    margin-top: 1rem;
    text-align: left;
  }
}
