/* =============================================================
   PODPAWS Cart & Checkout — v19 DTC TWO-COLUMN LAYOUT
   ─────────────────────────────────────────────────────────────
   Goal: Left = Billing Details | Right = Stripe Payment + Summary
   
   LAYOUT STRATEGY:
   - Checkout template uses WC-native col2-set (SAFE, no restructure)
   - This CSS adjusts column RATIO and visual styling ONLY
   - NO display/grid-template/flex-direction on WC/Astra core elements
   
   Safe changes: width%, colors, borders, radii, padding, backgrounds
   ============================================================= */


/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE — CONTAINER
   ═══════════════════════════════════════════════════════════════ */

#pp-checkout-v17 {
  max-width: 1340px !important;
  margin: 0 auto !important;
  padding: 28px 32px 64px !important;
  width: 100% !important;
}

/* Break out of Astra/woocommerce parent container width constraints */
body.woocommerce-checkout #pp-checkout-v17,
body.woocommerce-page #pp-checkout-v17 {
  max-width: 1340px !important;
}

/* KEY FIX: .woocommerce is the PARENT of #pp-checkout-v17 — it has max-width:1200px + display:grid
   Astra makes it a 2-col grid (777px main + 471px sidebar). We need SINGLE COLUMN on checkout. */
body.woocommerce-checkout .woocommerce,
body.woocommerce-page .woocommerce {
  max-width: 1340px !important;
  width: 100% !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  display: block !important;       /* kill Astra's 2-col grid */
}

/* Form inside wrapper — full width */
/* ═══════════════════════════════════════════════════════════════
   CHECKOUT — COLUMN RATIO (the key change for v19)
   
   Astra/WC uses col2-set with col-1 + col-2.
   CRITICAL FIX: Astra's col2-set gets overridden to display:block
   by some rule, killing the grid layout. We MUST restore it here.
   
   Left = Billing (wide) | Right = Payment+Summary (narrow)
   ═══════════════════════════════════════════════════════════════ */

/* Restore & configure the two-column grid — WIDER (v22/v23) */
#pp-checkout-v17 .col2-set {
  display: grid !important;
  grid-template-columns: minmax(0, 58%) minmax(0, 40%) !important;
  gap: 36px !important;
  width: 100% !important;
}

#pp-checkout-v17 .col-1 {
  /* Width controlled by grid — no float needed */
  min-width: 0; /* prevent grid blowout */
}

#pp-checkout-v17 .col-2 {
  /* Width controlled by grid */
  min-width: 0;
}

/* Right column: card container */
#pp-checkout-v17 .col-2 #order_review,
#pp-checkout-v17 .woocommerce-checkout-review-order {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 24px !important;
}


/* ─── STEPPER ─── */

#pp-checkout-v17 > .pp-steps,
#pp-checkout-v17 .pp-steps {
  display: flex !important;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 0 4px;
}

#pp-checkout-v17 .pp-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 500;
}

#pp-checkout-v17 .pp-step.is-done,
#pp-checkout-v17 .pp-step.is-active {
  color: #111827;
}

#pp-checkout-v17 .pp-step.is-active {
  font-weight: 600;
}

#pp-checkout-v17 .pp-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: #fff;
}

#pp-checkout-v17 .pp-step.is-active .pp-dot,
#pp-checkout-v17 .pp-step.is-done .pp-dot {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

#pp-checkout-v17 .pp-bar {
  width: 36px;
  height: 2px;
  background: #E5E7EB;
  margin: 0 4px;
}


/* ─── EXPRESS BUTTONS — ALL HIDDEN (v21) ───
   Our custom .pp-express + Stripe Gateway Express Checkout */

#pp-checkout-v17 > .pp-express,
.pp-express,
#wc-stripe-express-checkout-element,
#wc-stripe-express-checkout-element-applePay,
#wc-stripe-express-checkout-element-googlePay,
#wc-stripe-express-checkout-element-amazonPay,
#wc-stripe-express-checkout-element-link,
[id*="wc-stripe-express-checkout-element-"] {
  display: none !important;
}

.pp-ebtn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: 8px !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  border: 1px solid #D1D5DB !important;
}

.pp-ebtn.pp-shoppay { background: #5A31F4 !important; color: #fff !important; border-color: #5A31F4 !important; }
.pp-ebtn.pp-paypal { background: #FFC439 !important; color: #003087 !important; border-color: #FFC439 !important; }
.pp-ebtn.pp-gpay { background: #fff !important; color: #333 !important; border-color: #D1D5DB !important; }

.pp-ebtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}


/* ─── DIVIDER — ALL HIDDEN (v21) ───
   Our custom .pp-divider + Stripe OR separator */

#pp-checkout-v17 > .pp-divider,
.pp-divider,
#wc-stripe-express-checkout-button-separator {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════════
   CHECKOUT — BILLING FIELDS (visual)
   ═══════════════════════════════════════════════════════════════ */

/* Section headings in left column */
#pp-checkout-v17 .col-1 h3,
#pp-checkout-v17 #billing_first_name_field label,
#pp-checkout-v17 .woocommerce-billing-fields__field-wrapper label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

#pp-checkout-v17 h3#billing_title,
#pp-checkout-v17 .woocommerce-billing-fields h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-bottom: 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #F3F4F6 !important;
}

/* Input fields */
#pp-checkout-v17 input[type="text"],
#pp-checkout-v17 input[type="email"],
#pp-checkout-v17 input[type="tel"],
#pp-checkout-v17 input[type="password"],
#pp-checkout-v17 input[type="number"],
#pp-checkout-v17 select,
#pp-checkout-v17 textarea {
  height: 44px;
  border: 1px solid #D1D5DB !important;
  border-radius: 6px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  color: #111827 !important;
  background: #FAFAFA !important;
  transition: border-color .15s, box-shadow .15s !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

#pp-checkout-v17 select {
  appearance: auto;
  -webkit-appearance: menulist;
}

#pp-checkout-v17 textarea {
  height: auto;
  min-height: 80px;
  padding: 10px 14px !important;
  resize: vertical;
}

#pp-checkout-v17 input:focus,
#pp-checkout-v17 select:focus,
#pp-checkout-v17 textarea:focus {
  outline: none !important;
  border-color: #111827 !important;
  box-shadow: 0 0 0 2px rgba(17,24,39,.08) !important;
  background: #fff !important;
}

#pp-checkout-v17 input::placeholder { color: #9CA3AF !important; }

/* Labels */
#pp-checkout-v17 label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #374151 !important;
}

#pp-checkout-v17 .form-row label {
  display: block !important;
  margin-bottom: 5px !important;
}

#pp-checkout-v17 .form-row-wide {
  width: 100% !important;
}

#pp-checkout-v17 .form-row {
  margin-bottom: 14px !important;
}

/* Shipping section */
#pp-checkout-v17 #ship-to-different-address label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

#pp-checkout-v17 .woocommerce-shipping-fields h3 {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  padding-bottom: 10px !important;
  margin-bottom: 16px !important;
}


/* ═══════════════════════════════════════════════════════════════
   RIGHT COLUMN — ORDER SUMMARY + PAYMENT
   ═══════════════════════════════════════════════════════════════ */

/* Product list in order review */
#pp-checkout-v17 .woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table {
  border: none !important;
  font-size: 13px !important;
  margin-bottom: 0 !important;
}

.woocommerce-checkout-review-order-table th {
  display: none !important;
}

.woocommerce-checkout-review-order-table td {
  border: none !important;
  border-bottom: 1px solid #F3F4F6 !important;
  padding: 10px 6px !important;
  color: #374151 !important;
  vertical-align: middle !important;
}

.woocommerce-checkout-review-order-table .product-name {
  font-weight: 500 !important;
  color: #111827 !important;
  font-size: 13px !important;
}

.woocommerce-checkout-review-order-table .product-quantity {
  color: #9CA3AF !important;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #F3F4F6 !important;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item td {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  border: none !important;
  padding: 0 !important;
  color: #374151 !important;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-thumbnail {
  flex: 0 0 48px !important;
  width: 48px !important;
  max-width: 48px !important;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-thumbnail img {
  width: 48px !important;
  height: 48px !important;
  max-width: 100% !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  border: 1px solid #E5E7EB !important;
  display: block !important;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-weight: 500 !important;
  color: #111827 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-align: left !important;
  white-space: normal !important;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item td.product-subtotal {
  flex: 0 0 auto !important;
  text-align: right !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
  color: #111827 !important;
}

.woocommerce-checkout-review-order-table .product-name .product-quantity {
  display: inline-block !important;
  margin-left: 6px !important;
  color: #6B7280 !important;
  font-weight: 500 !important;
}

/* Totals */
.woocommerce-checkout-review-order-table tfoot th {
  font-size: 11px !important;
  color: #6B7280 !important;
  font-weight: 500 !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.woocommerce-checkout-review-order-table tfoot td {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  border-bottom: 1px solid #F3F4F6 !important;
  text-align: right !important;
  padding: 8px 6px !important;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total th {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  text-transform: none;
  letter-spacing: 0;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total td {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  border-bottom: 2px solid #E5E7EB !important;
  padding-top: 12px !important;
}

/* Promo code */
.woocommerce-form-coupon-toggle .showcoupon {
  font-size: 12px !important;
  color: #6B7280 !important;
  text-decoration: underline !important;
}

.woocommerce-form-coupon {
  margin-top: 10px !important;
  padding: 12px !important;
  background: #F9FAFB !important;
  border-radius: 8px !important;
  border: 1px solid #E5E7EB !important;
}


/* ═══════════════════════════════════════════════════════════════
   RIGHT COLUMN — STRIPE PAYMENT (highlighted)
   ═══════════════════════════════════════════════════════════════ */

#pp-checkout-v17 #payment {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 16px;
}

#pp-checkout-v17 #payment ul.payment_methods {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}

/* Payment method cards */
#pp-checkout-v17 #payment ul.payment_methods li.wc_payment_method {
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  background: #fff !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
  transition: border-color .15s, box-shadow .15s !important;
}

#pp-checkout-v17 #payment ul.payment_methods li.wc_payment_method:hover {
  border-color: #111827 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
}

#pp-checkout-v17 #payment ul.payment_methods li.wc_payment_method label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 13px 14px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #374151 !important;
}

/* Custom radio: hide native, style via label */
#pp-checkout-v17 #payment ul.payment_methods li.wc_payment_method input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* Selected payment method highlight */
#pp-checkout-v17 #payment ul.payment_methods li.wc_payment_method.input-checked,
#pp-checkout-v17 #payment ul.payment_methods li.wc_payment_method:has(input:checked) {
  border-color: #111827 !important;
  background: #FAFAFA !important;
}

/* Payment form area (Stripe iframe container) */
#pp-checkout-v17 #payment div.payment_box {
  background: #F9FAFB !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 0 0 8px 8px !important;
  padding: 16px !important;
  margin-top: 0 !important;
}

#pp-checkout-v17 #payment div.payment_box p {
  margin: 0 0 10px !important;
  font-size: 12px !important;
  color: #6B7280 !important;
}

#pp-checkout-v17 #payment div.payment_box input[type="text"],
#pp-checkout-v17 #payment div.payment_box input[type="password"],
#pp-checkout-v17 #payment div.payment_box select {
  height: 40px !important;
  font-size: 13px !important;
  border-color: #D1D5DB !important;
  border-radius: 6px !important;
}


/* ═══════════════════════════════════════════════════════════════
   PLACE ORDER BUTTON — deep black brand CTA
   ═══════════════════════════════════════════════════════════════ */

#place_order,
#pp-checkout-v17 #place_order {
  background: #111827 !important;
  color: #fff !important;
  padding: 15px 24px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  cursor: pointer !important;
  transition: all .2s !important;
  margin-top: 18px !important;
  height: auto !important;
  line-height: 1.4 !important;
  width: 100% !important;
  display: block !important;
}

#place_order:hover,
#pp-checkout-v17 #place_order:hover {
  background: #1F2937 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.2) !important;
}

#place_order:disabled,
#place_order.disabled {
  opacity: .5 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}


/* ═══════════════════════════════════════════════════════════════
   TERMS & CONDITIONS
   ═══════════════════════════════════════════════════════════════ */

.woocommerce-terms-and-conditions-wrapper {
  margin: 14px 0 !important;
  font-size: 11px !important;
  color: #6B7280 !important;
}

.woocommerce-terms-and-conditions-wrapper p {
  margin: 0 !important;
}

.woocommerce-terms-and-conditions-wrapper a {
  color: #374151 !important;
  text-decoration: underline !important;
}


/* ═══════════════════════════════════════════════════════════════
   ERROR / NOTICE MESSAGES
   ═══════════════════════════════════════════════════════════════ */

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-radius: 8px !important;
  padding: 14px 18px !important;
  font-size: 13px !important;
  margin-bottom: 16px !important;
}

.woocommerce-error {
  border-left: 4px solid #EF4444 !important;
  background: #FEF2F2 !important;
  color: #991B1B !important;
}

.woocommerce-invalid input,
.woocommerce-invalid select {
  border-color: #EF4444 !important;
}


/* ═══════════════════════════════════════════════════════════════
   TRUST BADGES
   ═══════════════════════════════════════════════════════════════ */

.pp-trust {
  margin-top: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  font-size: 11px !important;
  color: #9CA3AF !important;
}

.pp-trust div {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.pp-trust svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.pp-payicons {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 8px 0 12px !important;
}

.pp-payicons span {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #9CA3AF !important;
  padding: 3px 6px !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 4px !important;
}


/* ═══════════════════════════════════════════════════════════════
   REASSURANCE MESSAGE
   ═══════════════════════════════════════════════════════════════ */

.pp-reassure {
  display: flex !important;
  gap: 10px !important;
  padding: 14px !important;
  background: #FFFBEB !important;
  border: 1px solid #FDE68A !important;
  border-radius: 8px !important;
  margin-top: 14px !important;
  font-size: 12px !important;
  color: #92400E !important;
}

.pp-reassure svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}


/* =============================================================
   CART PAGE — VISUAL ENHANCEMENTS (unchanged from v18)
   ============================================================= */

.pp-cart-v3 {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Cart header */
.pp-cart-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid #E5E7EB !important;
}

.pp-cart-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 !important;
  letter-spacing: -0.02em !important;
}

.pp-cart-count {
  font-size: 13px !important;
  color: #6B7280 !important;
  margin: 4px 0 0 !important;
}

.pp-cart-continue {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  color: #374151 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}
.pp-cart-continue:hover { color: #111827 !important; }

/* Cart grid */
.pp-cart-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 380px !important;
  gap: 32px !important;
  align-items: start !important;
  margin-top: 24px !important;
}

.pp-cart-summary {
  position: sticky !important;
  top: 20px !important;
}

/* Cart items */
.pp-cart-line {
  display: flex !important;
  gap: 20px !important;
  padding: 20px 0 !important;
  border-bottom: 1px solid #F3F4F6 !important;
}
.pp-cart-line:first-child { padding-top: 0 !important; }

.pp-cart-line__thumb {
  flex-shrink: 0 !important;
  width: 90px !important;
  height: 90px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #F9FAFB !important;
  border: 1px solid #E5E7EB !important;
}
.pp-cart-line__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.pp-cart-line__body {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.pp-cart-line__top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.pp-cart-line__name {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin: 0 0 4px !important;
  line-height: 1.3 !important;
}
.pp-cart-line__name a { color: inherit !important; text-decoration: none !important; }
.pp-cart-line__name a:hover { color: #374151 !important; }
.pp-cart-line__meta { font-size: 12px !important; color: #6B7280 !important; margin-top: 4px !important; }

.pp-cart-line__remove {
  flex-shrink: 0 !important;
  color: #D1D5DB !important;
  padding: 4px !important;
  border-radius: 4px !important;
  transition: all .15s !important;
  cursor: pointer !important;
  background: none !important;
  border: none !important;
}
.pp-cart-line__remove:hover { color: #EF4444 !important; background: #FEF2F2 !important; }

/* Price · Qty · Subtotal */
.pp-cart-line__row {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  margin-top: auto !important;
  padding-top: 14px !important;
}

.pp-cart-line__price {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  white-space: nowrap !important;
}

.pp-cart-line__subtotal {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  white-space: nowrap !important;
  margin-left: auto !important;
}

/* Qty stepper */
.pp-qty-stepper {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
.pp-qty-stepper__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  background: #FAFAFA !important;
  border: none !important;
  cursor: pointer !important;
  transition: background .15s !important;
  color: #374151 !important;
}
.pp-qty-stepper__btn:hover { background: #E5E7EB !important; }
.pp-qty-stepper__input {
  width: 44px !important;
  height: 36px !important;
  border: none !important;
  border-left: 1px solid #E5E7EB !important;
  border-right: 1px solid #E5E7EB !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  background: #fff !important;
  -moz-appearance: textfield !important;
}
.pp-qty-stepper__input::-webkit-inner-spin-button,
.pp-qty-stepper__input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Cart actions */
.pp-cart-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 24px !important;
  padding-top: 20px !important;
  border-top: 1px solid #E5E7EB !important;
}
.pp-coupon-form { display: flex !important; gap: 8px !important; }
.pp-coupon-input {
  width: 180px !important;
  height: 40px !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 6px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  color: #111827 !important;
  background: #FAFAFA !important;
}
.pp-coupon-input::placeholder { color: #9CA3AF !important; }
.pp-coupon-btn {
  height: 40px !important;
  padding: 0 18px !important;
  background: #F3F4F6 !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  cursor: pointer !important;
}
.pp-coupon-btn:hover { background: #E5E7EB !important; }
.pp-cart-update {
  height: 40px !important;
  padding: 0 20px !important;
  background: transparent !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  cursor: pointer !important;
}
.pp-cart-update:hover { background: #F9FAFB !important; border-color: #9CA3AF !important; }

/* Cart summary card */
.pp-summary-card {
  background: #fff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  padding: 24px !important;
}
.pp-ship-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #6B7280 !important;
  margin-bottom: 6px !important;
}
.pp-ship-select {
  width: 100% !important;
  height: 40px !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 6px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  color: #111827 !important;
  background: #FAFAFA !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  cursor: pointer !important;
}
.pp-summary-rows {
  border-top: 1px solid #E5E7EB !important;
  padding-top: 16px !important;
  margin-bottom: 16px !important;
}
.pp-summary-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  padding: 8px 0 !important;
  font-size: 13px !important;
  color: #374151 !important;
}
.pp-summary-row--muted { color: #9CA3AF !important; }
.pp-summary-note {
  display: block !important;
  font-size: 11px !important;
  color: #9CA3AF !important;
  font-weight: 400 !important;
}
.pp-summary-val { font-weight: 500 !important; color: #111827 !important; }
.pp-summary-total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 0 !important;
  margin-top: 8px !important;
  border-top: 2px solid #E5E7EB !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111827 !important;
}
.pp-summary-total__val { font-size: 18px !important; }

/* Checkout button in cart summary */
.pp-btn-checkout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 14px 24px !important;
  background: #111827 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  transition: all .2s !important;
  margin-top: 20px !important;
}
.pp-btn-checkout:hover {
  background: #1F2937 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;
}

/* Express buttons in cart */
.pp-express { margin-top: 16px !important; }
.pp-express__divider {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  font-size: 11px !important;
  color: #9CA3AF !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}
.pp-express__divider::before,
.pp-express__divider::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: #E5E7EB !important;
}
.pp-express__btns {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.pp-express__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 40px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all .15s !important;
  border: 1px solid #D1D5DB !important;
}
.pp-express__shop { background: #5A31F4 !important; color: #fff !important; border-color: #5A31F4 !important; }
.pp-express__paypal { background: #FFC439 !important; color: #003087 !important; border-color: #FFC439 !important; }
.pp-express__apple { background: #000 !important; color: #fff !important; border-color: #000 !important; }
.pp-express__google { background: #fff !important; color: #333 !important; border-color: #D1D5DB !important; }
.pp-express__btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.1) !important;
}

/* Trust badges in cart */
.pp-trust-badges {
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px solid #E5E7EB !important;
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
  opacity: 0.6 !important;
}

/* Empty cart state */
.pp-cart-empty {
  text-align: center !important;
  padding: 60px 20px !important;
}
.pp-cart-empty__icon { font-size: 48px !important; margin-bottom: 16px !important; }
.pp-cart-empty__title {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin-bottom: 8px !important;
}
.pp-cart-empty__sub { font-size: 14px !important; color: #6B7280 !important; margin-bottom: 24px !important; }
.pp-cart-empty__btn {
  display: inline-block !important;
  padding: 12px 28px !important;
  background: #111827 !important;
  color: #fff !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all .2s !important;
}
.pp-cart-empty__btn:hover {
  background: #1F2937 !important;
  transform: translateY(-1px) !important;
}

/* Free shipping bar */
.pp-shipbar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 18px !important;
  background: #F0FDF4 !important;
  border: 1px solid #BBF7D0 !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
  font-size: 13px !important;
  color: #166534 !important;
}
.pp-track {
  flex: 1 !important;
  height: 6px !important;
  background: #D1FAE5 !important;
  border-radius: 3px !important;
  overflow: hidden !important;
  margin-left: 8px !important;
}
.pp-fill {
  height: 100% !important;
  background: #22C55E !important;
  border-radius: 3px !important;
  transition: width .3s !important;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 1024px) {
  .pp-cart-grid {
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 24px !important;
  }
  .pp-summary-card { padding: 20px !important; }
  
  /* Slightly narrower columns on medium screens */
  #pp-checkout-v17 .col-1 { width: 55%; padding-right: 20px; }
  #pp-checkout-v17 .col-2 { width: 41%; }
}

@media screen and (max-width: 768px) {
  /* Stack to single column */
  .pp-cart-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .pp-cart-summary { position: static !important; }

  /* Full-width columns on mobile */
  #pp-checkout-v17 .col-1,
  #pp-checkout-v17 .col-2 {
    width: 100% !important;
    padding-right: 0 !important;
  }
  
  #pp-checkout-v17 .col-2 #order_review,
  #pp-checkout-v17 .woocommerce-checkout-review-order {
    margin-top: 20px !important;
  }

  /* Stepper wraps */
  #pp-checkout-v17 > .pp-steps,
  #pp-checkout-v17 .pp-steps {
    flex-wrap: wrap !important;
    gap: 8px 0 !important;
  }
  #pp-checkout-v17 .pp-bar { display: none !important; }

  /* Express full width */
  #pp-checkout-v17 > .pp-express,
  .pp-express { max-width: 100% !important; margin-left: 0 !important; }

  /* Touch-friendly inputs */
  .pp-qty-stepper__input { width: 52px !important; height: 42px !important; font-size: 16px !important; }
  .pp-qty-stepper__btn { width: 42px !important; height: 42px !important; }

  #pp-checkout-v17 input[type="text"],
  #pp-checkout-v17 input[type="email"],
  #pp-checkout-v17 input[type="tel"],
  #pp-checkout-v17 select {
    height: 48px !important;
    font-size: 16px !important;
  }

  .pp-btn-checkout { padding: 16px 24px !important; font-size: 15px !important; }
  #place_order { padding: 16px 24px !important; font-size: 15px !important; }
  .pp-summary-card { padding: 16px !important; border-radius: 10px !important; }

  .pp-express__btns { flex-direction: row !important; flex-wrap: wrap !important; }
  .pp-express__btn { flex: 1 1 calc(50% - 4px) !important; min-width: 0 !important; }
  .pp-cart-line { gap: 14px !important; padding: 16px 0 !important; }
  .pp-cart-line__thumb { width: 72px !important; height: 72px !important; }
  .pp-cart-actions { flex-direction: column !important; gap: 12px !important; align-items: stretch !important; }
  .pp-coupon-form { flex-direction: column !important; }
  .pp-coupon-input { width: 100% !important; }

  #pp-checkout-v17 { padding: 20px 16px 48px !important; }
  .pp-cart-v3 { padding: 20px 16px 48px !important; }
}

@media screen and (max-width: 480px) {
  .pp-cart-title { font-size: 20px !important; }
  .pp-summary-card { padding: 14px !important; }
  .pp-cart-line__row { flex-wrap: wrap !important; gap: 12px !important; }
  .pp-cart-line__subtotal {
    margin-left: 0 !important;
    width: 100% !important;
    text-align: right !important;
    padding-top: 8px !important;
    border-top: 1px dashed #E5E7EB !important;
  }
  .pp-express__btn { flex: 1 1 100% !important; }
}


/* ═══════════════════════════════════════════════════════════════
   FINAL OVERRIDES — must be LAST in stylesheet
   
   These rules override ANY other rule (including dynamically
   injected block !important / width 100% !important rules).
   ═══════════════════════════════════════════════════════════════ */

/* CRITICAL: Force col2-set to be a grid layout — WIDER (v22) */
#pp-checkout-v17 form.checkout > .col2-set,
#pp-checkout-v17 .col2-set {
  display: grid !important;
  grid-template-columns: minmax(0, 62%) minmax(0, 36%) !important;
  gap: 32px !important;
  width: 100% !important;
  clear: none !important;       /* kill the destructive clear:both */
}

/* Grid children: let grid control width, NOT 100% */
#pp-checkout-v17 .col2-set > .col-1,
#pp-checkout-v17 .col2-set > .col-2 {
  display: block !important;
  width: auto !important;      /* override width:100% !important */
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
  clear: none !important;       /* kill clear:both on columns */
  float: none !important;
}

/* CRITICAL: Kill WC's clearfix pseudo-elements that break Grid layout!
   woocommerce-layout-grid.css adds ::before/::after { display:table; content:'' }
   which become extra grid items and push real content to next "row". */
#pp-checkout-v17 .col2-set::before,
#pp-checkout-v17 .col2-set::after {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   2026-08-14 FIX: align boxes + un-cramp shipping row
   ═══════════════════════════════════════════════════════════════ */

/* 1) Kill the 88px top offset on the right card so both boxes align */
#pp-checkout-v17 .col2-set > .col-2 #order_review,
#pp-checkout-v17 .col2-set > .col-2 .woocommerce-checkout-review-order {
  top: 0 !important;
  margin-top: 0 !important;
}

/* 2) Shipping method row: stop text from wrapping into 4 tight lines */
#pp-checkout-v17 .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping th {
  display: none !important; /* redundant: the shipping method label already describes itself */
}

#pp-checkout-v17 .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals.shipping td {
  display: table-cell !important;
  width: 100% !important;
  padding: 12px 0 !important;
  vertical-align: top !important;
  box-sizing: border-box !important;
}

#pp-checkout-v17 tr.woocommerce-shipping-totals.shipping ul#shipping_method {
  margin: 0 !important;
  padding: 0 !important;
}

#pp-checkout-v17 tr.woocommerce-shipping-totals.shipping ul#shipping_method li {
  padding: 0 !important;
}

#pp-checkout-v17 tr.woocommerce-shipping-totals.shipping ul#shipping_method li label {
  display: block !important;
  width: 100% !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

#pp-checkout-v17 tr.woocommerce-shipping-totals.shipping ul#shipping_method li label .woocommerce-Price-amount {
  display: block !important;
  text-align: right !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-top: 3px !important;
  font-size: 13px !important;
}
