/* Shared checkout total: prominent at desktop and phone widths. */
.checkout-estimated-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 2px solid var(--gold, #9c711b);
  border-radius: 8px;
  background: var(--surface, #f7f3e9);
  color: var(--text, #26221b);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}
.checkout-estimated-total .checkout-estimated-total-amount {
  color: inherit;
  font-size: 2rem;
  font-weight: 700;
  white-space: nowrap;
}

.checkout-payment-total { margin-top: 1rem; }
.checkout-payment-total .checkout-estimated-total { margin-top: 0; }
.checkout-payment-total p,
body.no-theme .checkout-payment-total p {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
}
.checkout-payment-total + .modal-actions { margin-top: 0.75rem; }
@media (max-width: 480px) {
  .checkout-payment-total .checkout-estimated-total { padding: 0.75rem; }
  .checkout-payment-total .checkout-estimated-total-amount { font-size: 1.5rem; }
}

/* Reservation status must stay readable beside photos and prices. */
.marketplace-shop .cart-line .cart-availability,
body.no-theme .cart-line .cart-availability {
  margin: 0.6rem 0;
  padding: 0.65rem 0.75rem;
  border-left: 4px solid #8a631f;
  border-radius: 4px;
  background: #fff4d8;
  color: #332819;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .marketplace-shop .cart-line {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }
  .marketplace-shop .cart-line-thumb { width: 56px; height: 68px; }
  .marketplace-shop .cart-line-info { min-width: 0; }
  .marketplace-shop .cart-line-price { grid-column: 2; text-align: left; }
  .checkout-payment-total .checkout-estimated-total {
    padding: 0.85rem;
    font-size: 1rem;
  }
  .checkout-payment-total .checkout-estimated-total-amount { font-size: 1.875rem; }
  .checkout-payment-total p,
  body.no-theme .checkout-payment-total p {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
  }
  .checkout-payment-total + .modal-actions button {
    min-height: 48px;
    font-size: 1rem;
    line-height: 1.3;
    padding: 0.65rem;
  }
}
