/**
 * Cart / checkout / account — light inputs on dark page (readable placeholders + Stripe UI).
 */

.jtl-wc-commerce {
  color: #fff;
}

.jtl-wc-commerce .wc-block-components-product-name,
.jtl-wc-commerce .wc-block-components-product-price,
.jtl-wc-commerce .wc-block-components-totals-item,
.jtl-wc-commerce .wc-block-components-formatted-money-amount,
.jtl-wc-commerce .wc-block-components-order-summary-item__quantity,
.jtl-wc-commerce .wc-block-components-sidebar-layout .wc-block-components-title {
  color: #fff;
}

.jtl-wc-commerce .wc-block-components-button:not(.is-link) {
  background: #ffc15e;
  color: #000;
  border-radius: 9999px;
}

/* Address, contact, and generic block inputs */
.jtl-wc-commerce .wc-block-components-text-input input,
.jtl-wc-commerce .wc-block-components-text-input textarea,
.jtl-wc-commerce .wc-block-components-combobox-control input.components-combobox-control__input,
.jtl-wc-commerce .wc-block-components-select select,
.jtl-wc-commerce .wc-block-components-country-input select,
.jtl-wc-commerce .wc-block-components-address-form input[type="text"],
.jtl-wc-commerce .wc-block-components-address-form input[type="tel"],
.jtl-wc-commerce .wc-block-components-address-form input[type="email"],
.jtl-wc-commerce .wc-block-components-form .input-text,
.jtl-wc-commerce input.input-text,
.jtl-wc-commerce input[type="text"],
.jtl-wc-commerce input[type="email"],
.jtl-wc-commerce input[type="password"],
.jtl-wc-commerce input[type="tel"],
.jtl-wc-commerce input[type="number"],
.jtl-wc-commerce select,
.jtl-wc-commerce textarea {
  background-color: #fff !important;
  color: #171717 !important;
  border: 1px solid #a3a3a3 !important;
  border-radius: 0.5rem !important;
  caret-color: #171717 !important;
}

.jtl-wc-commerce .wc-block-components-text-input input::placeholder,
.jtl-wc-commerce .wc-block-components-text-input textarea::placeholder,
.jtl-wc-commerce input::placeholder,
.jtl-wc-commerce textarea::placeholder {
  color: #737373 !important;
  opacity: 1 !important;
}

.jtl-wc-commerce .wc-block-components-text-input label,
.jtl-wc-commerce .wc-block-components-combobox-control label,
.jtl-wc-commerce .wc-block-components-select label {
  color: #404040 !important;
}

.jtl-wc-commerce .wc-block-components-checkbox__label,
.jtl-wc-commerce .wc-block-components-checkbox label,
.jtl-wc-commerce fieldset legend {
  color: #fff !important;
}

/* Payment method panel (card number, expiry, CVC live in Stripe iframe below) */
.jtl-wc-commerce .wc-block-components-checkout-payment-method__content,
.jtl-wc-commerce .wc-block-components-radio-control-accordion-content,
.jtl-wc-commerce .payment_box,
.jtl-wc-commerce .wc-block-components-payment-methods {
  background: #f5f5f5 !important;
  color: #171717 !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 0.75rem;
  padding: 1rem;
}

.jtl-wc-commerce .wc-block-components-radio-control__option,
.jtl-wc-commerce .wc-block-components-radio-control__label,
.jtl-wc-commerce .wc-block-components-checkout-payment-methods__title {
  color: #fff;
}

.jtl-wc-commerce .wc-block-components-radio-control-accordion-content {
  color: #171717 !important;
}

.jtl-wc-commerce .wc-block-components-radio-control-accordion-content p,
.jtl-wc-commerce .wc-block-components-radio-control-accordion-content label {
  color: #171717 !important;
}

/* Stripe / WooCommerce Payments mount point */
.jtl-wc-commerce .wcpay-upe-element,
.jtl-wc-commerce .wc-stripe-upe-element,
.jtl-wc-commerce #wc-stripe-upe-form,
.jtl-wc-commerce .StripeElement,
.jtl-wc-commerce .wc-block-components-checkout-payment-method .stripe-gateway {
  background: #fff !important;
  border-radius: 0.5rem;
  padding: 0.75rem;
  min-height: 2.75rem;
}

.jtl-wc-commerce .woocommerce-info,
.jtl-wc-commerce .woocommerce-message,
.jtl-wc-commerce .woocommerce-error {
  color: #171717;
}

/* —— Order received / thank you —— */
.jtl-wc-commerce .woocommerce-order {
  max-width: 42rem;
}

.jtl-wc-commerce .woocommerce-thankyou-order-received {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #fff;
}

.jtl-wc-commerce ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.jtl-wc-commerce .woocommerce-order-overview li {
  margin: 0;
  padding: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.jtl-wc-commerce .woocommerce-order-overview li strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: #fff;
  word-break: break-word;
}

.jtl-wc-commerce .woocommerce-order-details__title,
.jtl-wc-commerce .woocommerce-order .woocommerce-column__title,
.jtl-wc-commerce .woocommerce-customer-details h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffc15e;
}

.jtl-wc-commerce table.shop_table,
.jtl-wc-commerce .woocommerce-table--order-details {
  display: table;
  width: 100%;
  margin: 0 0 2rem;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.jtl-wc-commerce table.shop_table thead {
  display: table-header-group;
}

.jtl-wc-commerce table.shop_table tbody {
  display: table-row-group;
}

.jtl-wc-commerce table.shop_table tfoot {
  display: table-footer-group;
}

.jtl-wc-commerce table.shop_table tr {
  display: table-row;
}

.jtl-wc-commerce table.shop_table th,
.jtl-wc-commerce table.shop_table td {
  display: table-cell;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  vertical-align: top;
  text-align: left;
}

.jtl-wc-commerce table.shop_table thead th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.jtl-wc-commerce table.shop_table th.product-total,
.jtl-wc-commerce table.shop_table td.product-total {
  text-align: right;
  white-space: nowrap;
}

.jtl-wc-commerce table.shop_table .product-name {
  color: #ffc15e;
}

.jtl-wc-commerce table.shop_table .product-name a {
  color: #ffc15e;
  text-decoration: none;
}

.jtl-wc-commerce table.shop_table .product-name a:hover {
  opacity: 0.85;
}

.jtl-wc-commerce table.shop_table .product-quantity {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.jtl-wc-commerce table.shop_table tfoot th {
  text-align: right;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.jtl-wc-commerce table.shop_table tfoot td {
  text-align: right;
  font-weight: 600;
}

.jtl-wc-commerce table.shop_table tfoot tr:last-child th,
.jtl-wc-commerce table.shop_table tfoot tr:last-child td {
  border-bottom: none;
  font-size: 1.05rem;
  color: #ffc15e;
}

.jtl-wc-commerce .woocommerce-columns--addresses.col2-set {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
}

@media (min-width: 640px) {
  .jtl-wc-commerce .woocommerce-columns--addresses.col2-set {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.jtl-wc-commerce .woocommerce-column--billing-address,
.jtl-wc-commerce .woocommerce-column--shipping-address {
  margin: 0;
  padding: 0;
  float: none;
  width: auto;
}

.jtl-wc-commerce .woocommerce-column address {
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  font-style: normal;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.jtl-wc-commerce .woocommerce-order p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

/* Block checkout confirmation (if used) */
.jtl-wc-commerce .wc-block-order-confirmation-summary,
.jtl-wc-commerce .wc-block-order-confirmation-totals-wrapper {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.jtl-wc-commerce .wc-block-order-confirmation-totals table {
  width: 100%;
  border-collapse: collapse;
}

.jtl-wc-commerce .wc-block-order-confirmation-totals th,
.jtl-wc-commerce .wc-block-order-confirmation-totals td {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
