/* ==========================================================================\n * CHECKOUT R5 — advanced structured interactions\n * Presentation only. R1 state / R2 backend / R3 desktop / R4 responsive remain authority.\n * ========================================================================== */

.checkout-container .checkout-r5-shell {
  margin-top: .625rem;
  min-width: 0;
}

.checkout-container .checkout-r5-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.checkout-container .checkout-r5-promo-target,
.checkout-container .checkout-r5-price-toggle {
  min-width: 44px;
  min-height: 44px;
  white-space: normal;
}

.checkout-container .checkout-r5-price-disclosure {
  margin-top: .625rem;
  padding: .75rem;
  border: 1px solid #d7dce2;
  border-radius: .625rem;
  background: #fff;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.checkout-container .checkout-r5-price-title {
  margin: 0 0 .5rem;
  font-size: .9rem;
  font-weight: 700;
}

.checkout-container .checkout-r5-price-list {
  display: grid;
  gap: .5rem;
}

.checkout-container .checkout-r5-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .25rem .75rem;
  align-items: start;
  padding: .5rem 0;
  border-top: 1px solid #eceff2;
  min-width: 0;
}

.checkout-container .checkout-r5-price-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.checkout-container .checkout-r5-price-store {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.checkout-container .checkout-r5-price-values {
  display: grid;
  justify-items: start;
  gap: .125rem;
  text-align: left;
  white-space: normal;
}

.checkout-container .checkout-r5-price-unit {
  color: #667085;
  font-size: .78rem;
}

.checkout-container .checkout-r5-price-minimum {
  grid-column: 1 / -1;
  color: #365314;
  font-size: .78rem;
  font-weight: 600;
}

.checkout-container .checkout-r5-price-empty {
  margin: 0;
  color: #667085;
}

.checkout-container .checkout-r5-promo-target[aria-busy="true"] {
  cursor: progress;
}

.checkout-container .checkout-r5-promo-target:focus-visible,
.checkout-container .checkout-r5-price-toggle:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .checkout-container .checkout-r5-shell {
    width: 100%;
  }

  .checkout-container .checkout-r5-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-container .checkout-r5-actions > .btn:only-child {
    grid-column: 1 / -1;
  }

  .checkout-container .checkout-r5-price-disclosure {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .checkout-container .checkout-r5-actions {
    grid-template-columns: 1fr;
  }

  .checkout-container .checkout-r5-price-row {
    grid-template-columns: 1fr;
  }

  .checkout-container .checkout-r5-price-values {
    justify-items: start;
    text-align: left;
    white-space: normal;
  }
}

@media (min-width: 992px) {
  .checkout-container [data-role="product-item"].ui-draggable-dragging {
    opacity: .78;
    cursor: grabbing;
  }

  .checkout-container .checkout-drop-target-valid {
    outline: 2px solid #198754;
    outline-offset: -2px;
  }

  .checkout-container .checkout-drop-target-invalid {
    outline: 2px dashed #dc3545;
    outline-offset: -2px;
  }

  .checkout-container .checkout-drop-feedback:not(:empty) {
    font-weight: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-container .checkout-r5-promo-target,
  .checkout-container .checkout-r5-price-toggle {
    transition: none;
  }
}
