/* Lilly White clean WooCommerce polish overrides */

/* Product page flow */

.single-product div.product .summary {
  display: flex;
  flex-direction: column;
}

.single-product div.product .summary .price {
  order: 10;
}

.single-product div.product .summary .stock {
  order: 20;
  width: fit-content;
}

.single-product div.product .summary .product_meta {
  order: 30;
}

.single-product div.product .summary form.cart {
  order: 80;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--lw-border);
}

.single-product div.product .summary form.cart::before {
  content: "Ready to add this item?";
  display: block;
  width: 100%;
  color: var(--lw-ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.single-product div.product .summary form.cart::after {
  content: "Branding setup fees and unit branding costs are calculated separately and confirmed before quote approval.";
  display: block;
  width: 100%;
  color: var(--lw-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 10px;
}

.single-product button.single_add_to_cart_button,
.single-product .single_add_to_cart_button {
  min-width: 210px;
}

/* Product enhancer spacing */

.single-product .lwpe-branding-options,
.single-product .lwpe-branding-box,
.single-product .lwpe-product-enhancer,
.single-product .summary [class*="branding"] {
  margin-top: 22px;
}

/* Cart and checkout fee visibility */

.lw-branding-fee-explanation {
  border-radius: 22px;
  padding: 18px;
  background: rgba(214,183,106,0.14);
  border: 1px solid rgba(184,138,45,0.22);
  margin: 0 0 22px;
}

.lw-branding-fee-explanation strong {
  display: block;
  color: var(--lw-ink);
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 6px;
}

.lw-branding-fee-explanation span {
  display: block;
  color: #6b5a33;
  font-weight: 700;
  line-height: 1.55;
  font-size: 13px;
}

.lw-checkout-fee-explanation {
  margin-bottom: 18px;
}

.woocommerce-cart .cart_totals .fee th,
.woocommerce-cart .cart_totals .fee td,
.woocommerce-checkout-review-order-table .fee th,
.woocommerce-checkout-review-order-table .fee td {
  background: rgba(214,183,106,0.14);
  color: #6b5a33;
  font-weight: 900;
  padding: 14px 12px !important;
}

.woocommerce-cart .cart_totals .fee th,
.woocommerce-checkout-review-order-table .fee th {
  border-radius: 16px 0 0 16px;
}

.woocommerce-cart .cart_totals .fee td,
.woocommerce-checkout-review-order-table .fee td {
  border-radius: 0 16px 16px 0;
}

.woocommerce-cart .order-total th,
.woocommerce-cart .order-total td,
.woocommerce-checkout .order-total th,
.woocommerce-checkout .order-total td {
  font-size: 20px;
  color: var(--lw-ink);
}

/* Checkout sizing and layout */

.woocommerce-checkout form.checkout {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: 30px;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review {
  min-width: 0;
}

.woocommerce-checkout #order_review {
  position: sticky;
  top: 120px;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: 49%;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-selection {
  width: 100%;
  box-sizing: border-box;
}

.woocommerce-checkout-review-order-table td.product-name {
  font-size: 14px;
  line-height: 1.45;
}

.woocommerce-checkout-review-order-table .wc-item-meta,
.woocommerce-checkout-review-order-table dl.variation {
  margin-top: 8px;
  color: var(--lw-muted);
  font-size: 12px;
  line-height: 1.45;
}

.woocommerce-checkout-review-order-table .wc-item-meta p,
.woocommerce-checkout-review-order-table dl.variation p {
  margin: 0;
}

@media (max-width: 1100px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout #order_review {
    position: static;
  }

  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review,
  .woocommerce-checkout #customer_details {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .single-product button.single_add_to_cart_button,
  .single-product .single_add_to_cart_button {
    min-width: 0;
  }

  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100%;
    float: none;
  }
}

/* Line-level branding notes in cart and checkout */

.woocommerce-cart .variation,
.woocommerce-checkout .variation,
.woocommerce-cart .wc-item-meta,
.woocommerce-checkout .wc-item-meta {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(214,183,106,0.10);
  border: 1px solid rgba(184,138,45,0.16);
}

.woocommerce-cart .variation dt,
.woocommerce-checkout .variation dt,
.woocommerce-cart .wc-item-meta-label,
.woocommerce-checkout .wc-item-meta-label {
  color: var(--lw-ink);
  font-weight: 900;
  font-size: 12px;
}

.woocommerce-cart .variation dd,
.woocommerce-checkout .variation dd,
.woocommerce-cart .wc-item-meta p,
.woocommerce-checkout .wc-item-meta p {
  color: #6b5a33;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.45;
}

.lw-cart-branding-cost-note {
  display: inline-block;
  color: #6b5a33;
  font-weight: 800;
}

.lw-line-branding-subtotal-note {
  margin-top: 6px;
  color: #6b5a33;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

/* Cleaner branding line notes */

.lw-cart-branding-cost-note {
  display: inline-block;
  color: #6b5a33;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.45;
}

.lw-line-branding-subtotal-note {
  margin-top: 6px;
  color: #6b5a33;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.woocommerce-cart .variation,
.woocommerce-checkout .variation,
.woocommerce-cart .wc-item-meta,
.woocommerce-checkout .wc-item-meta {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(214,183,106,0.10);
  border: 1px solid rgba(184,138,45,0.16);
}

.woocommerce-cart .variation dt,
.woocommerce-checkout .variation dt,
.woocommerce-cart .wc-item-meta-label,
.woocommerce-checkout .wc-item-meta-label {
  color: var(--lw-ink);
  font-weight: 900;
  font-size: 12px;
}

.woocommerce-cart .variation dd,
.woocommerce-checkout .variation dd,
.woocommerce-cart .wc-item-meta p,
.woocommerce-checkout .wc-item-meta p {
  color: #6b5a33;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.45;
}

/* Detailed cart branding cost breakdown */

.lw-cart-branding-breakdown {
  display: grid;
  gap: 5px;
  color: #6b5a33;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.lw-cart-branding-breakdown strong {
  color: var(--lw-ink);
  font-weight: 900;
}

.lw-cart-branding-breakdown em {
  color: #7a5b19;
  font-style: normal;
  font-weight: 800;
}

.lw-cart-branding-small-note {
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid rgba(184,138,45,0.18);
  color: var(--lw-muted);
  font-size: 11px;
}
