/* Scoped to classic WooCommerce cart/checkout, without changing modal cart. */
body.woocommerce-cart:not(.cqg-modal-cart) .entry-title,
body.woocommerce-checkout .entry-title{font-size:clamp(28px,2.5vw,42px);line-height:1.2;font-family:Georgia,serif;color:#25372b;margin-bottom:28px}
body.woocommerce-cart .woocommerce,body.woocommerce-checkout .woocommerce{font-family:inherit;color:#2e392f}
body.woocommerce-cart #primary,body.woocommerce-checkout #primary{width:100%;max-width:1450px;margin-inline:auto}
body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals,
body.woocommerce-checkout .woocommerce-checkout{font-size:15px}
body.woocommerce-cart .woocommerce-cart-form table.shop_table{border:1px solid #e2e8de;border-radius:18px;border-collapse:separate;overflow:hidden;background:#fffdf9;box-shadow:0 8px 24px rgba(45,55,40,.05)}
body.woocommerce-cart .shop_table th{font-size:13px;letter-spacing:.02em;font-weight:650;background:#f2f6ee;color:#405744;padding:17px 15px}
body.woocommerce-cart .shop_table td{padding:15px;border-color:#edf0e8;vertical-align:middle}
body.woocommerce-cart table.cart img{width:86px!important;height:86px!important;object-fit:cover;border-radius:12px}
body.woocommerce-cart .product-name a{font-weight:650;color:#2e4c35!important}
body.woocommerce-cart .cart-collaterals .cart_totals{background:#fffdf9;border:1px solid #e2e8de;border-radius:18px;padding:24px;width:min(100%,430px);box-shadow:0 8px 24px rgba(45,55,40,.05)}
body.woocommerce-cart .cart-collaterals .cart_totals h2{font-family:Georgia,serif;font-size:23px;color:#26372b;margin-bottom:16px}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table{background:none}
body.woocommerce-checkout .woocommerce-checkout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);column-gap:32px;align-items:start}
body.woocommerce-checkout .woocommerce-checkout #customer_details{grid-column:1;grid-row:1/5;width:100%;float:none;min-width:0}
body.woocommerce-checkout .woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout .woocommerce-checkout #customer_details .col-2{width:100%;float:none}
body.woocommerce-checkout .woocommerce-checkout #order_review_heading{grid-column:2;grid-row:1;float:none;width:auto;margin:0;padding:25px 25px 0;background:#fffdf9;border:1px solid #e2e8de;border-bottom:0;border-radius:18px 18px 0 0;font-family:Georgia,serif;font-size:24px;color:#26372b}
body.woocommerce-checkout .woocommerce-checkout #order_review{grid-column:2;grid-row:2;float:none;width:auto;min-width:0;margin:0;background:#fffdf9;border:1px solid #e2e8de;border-top:0;border-radius:0 0 18px 18px;padding:15px 25px 25px;box-shadow:0 8px 24px rgba(45,55,40,.06)}
body.woocommerce-checkout .woocommerce-billing-fields,body.woocommerce-checkout .woocommerce-shipping-fields,body.woocommerce-checkout .woocommerce-additional-fields{background:#fffdf9;border:1px solid #e2e8de;border-radius:18px;padding:25px;margin-bottom:18px;box-shadow:0 8px 24px rgba(45,55,40,.05)}
body.woocommerce-checkout .woocommerce-billing-fields h3,body.woocommerce-checkout .woocommerce-additional-fields h3{font-family:Georgia,serif;font-size:24px;color:#26372b;margin:0 0 20px!important;padding:0 0 15px!important;border-bottom:1px solid #e5e9e0!important}
body.woocommerce-checkout .woocommerce-checkout input.input-text,body.woocommerce-checkout .woocommerce-checkout textarea,body.woocommerce-checkout .woocommerce-checkout select,
body.woocommerce-cart .woocommerce input.qty{border:1px solid #dce4d8!important;background:#fff!important;border-radius:9px!important;min-height:45px;padding:10px 12px;color:#28372d}
body.woocommerce-checkout .woocommerce form .form-row label{font-weight:600;font-size:13px;color:#425244}
body.woocommerce-checkout #order_review table.shop_table{border:0;margin:0 0 18px;border-collapse:collapse;background:none;table-layout:auto}
body.woocommerce-checkout #order_review table.shop_table th,body.woocommerce-checkout #order_review table.shop_table td{border-color:#e7ece4;padding:13px 6px;vertical-align:middle;font-size:14px}
body.woocommerce-checkout #order_review .product-name{min-width:0;overflow-wrap:anywhere}
.cqg-checkout-item{display:flex;align-items:center;gap:12px;min-width:0}
.cqg-checkout-item-photo{width:65px!important;height:65px!important;min-width:65px;object-fit:cover;border-radius:10px;border:1px solid #e8e8df}
.cqg-checkout-item-title{display:block;line-height:1.4;font-weight:550;color:#2b4331}
body.woocommerce-checkout #payment{background:#f5f8f2;border-radius:12px;padding:12px}
body.woocommerce-checkout #payment .payment_box{background:#eaf0e5!important;border-radius:10px}
body.woocommerce-checkout #payment .payment_box:before{border-bottom-color:#eaf0e5!important}
body.woocommerce-checkout #payment .place-order{padding:14px 0 0!important}
body.woocommerce-checkout #place_order,body.woocommerce-cart .checkout-button{background:#678a49!important;border:0!important;border-radius:12px!important;min-height:55px;text-align:center;font-weight:700!important;letter-spacing:.015em;color:#fff!important;width:100%;padding:15px!important}
body.woocommerce-checkout #place_order:hover,body.woocommerce-cart .checkout-button:hover{background:#4d6e34!important}
body.woocommerce-checkout .woocommerce-form-coupon-toggle,body.woocommerce-checkout form.checkout_coupon,
body.woocommerce-cart .coupon,body.woocommerce-cart .woocommerce-cart-form .actions .coupon,
body.woocommerce-checkout .cqg-hide-coupon,body.woocommerce-cart .cqg-hide-coupon{display:none!important}
body.woocommerce-checkout .woocommerce-privacy-policy-text{font-size:13px;line-height:1.65;color:#5b6659}
body.woocommerce-checkout .woocommerce-privacy-policy-text a{color:#567d40}
@media(max-width:980px){body.woocommerce-checkout .woocommerce-checkout{display:block}body.woocommerce-checkout .woocommerce-checkout #order_review_heading{margin-top:20px}body.woocommerce-checkout .woocommerce-billing-fields,body.woocommerce-checkout .woocommerce-shipping-fields,body.woocommerce-checkout .woocommerce-additional-fields{padding:19px}}
@media(max-width:600px){body.woocommerce-checkout .woocommerce-checkout #order_review,body.woocommerce-checkout .woocommerce-checkout #order_review_heading{padding-left:15px;padding-right:15px}.cqg-checkout-item-photo{width:52px!important;height:52px!important;min-width:52px}.cqg-checkout-item{gap:8px}body.woocommerce-cart table.cart img{width:64px!important;height:64px!important}}

/* v1.0.1: Astra compatibility — restore full-width classic cart/checkout layout.
   Only the two WooCommerce pages are targeted; the modal cart is untouched. */
@media (min-width:981px) {
  body.woocommerce-checkout:not(.woocommerce-order-received) #content .ast-container,
  body.woocommerce-cart #content .ast-container {max-width:1540px!important;}
  body.woocommerce-checkout:not(.woocommerce-order-received) #primary,
  body.woocommerce-cart #primary {width:100%!important;max-width:1500px!important;float:none!important;min-width:0;margin-left:auto!important;margin-right:auto!important;}
  body.woocommerce-checkout:not(.woocommerce-order-received) #primary .site-main,
  body.woocommerce-cart #primary .site-main,
  body.woocommerce-checkout:not(.woocommerce-order-received) #primary .entry-content,
  body.woocommerce-cart #primary .entry-content {width:100%!important;max-width:none!important;min-width:0;}
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout {
    display:grid!important;
    grid-template-columns:minmax(0, 1.12fr) minmax(0, .88fr)!important;
    column-gap:30px!important;
    row-gap:0!important;
    width:100%!important;max-width:none!important;
    align-items:start;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details,
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .col2-set#customer_details {
    grid-column:1!important;grid-row:1 / span 3!important;
    float:none!important;clear:none!important;
    display:block!important;width:100%!important;max-width:none!important;
    min-width:0!important;margin:0!important;padding:0!important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details .col-1,
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details .col-2 {
    float:none!important;clear:none!important;display:block!important;
    width:100%!important;max-width:none!important;min-width:0!important;
    margin:0!important;padding:0!important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #order_review_heading {
    grid-column:2!important;grid-row:1!important;float:none!important;clear:none!important;
    width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #order_review {
    grid-column:2!important;grid-row:2!important;float:none!important;clear:none!important;
    width:100%!important;max-width:none!important;min-width:0!important;
    margin:0!important;box-sizing:border-box!important;
  }
  body.woocommerce-cart .woocommerce-cart-form {
    width:100%!important;max-width:none!important;float:none!important;margin:0 0 22px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table {width:100%!important;table-layout:auto;}
  body.woocommerce-cart .cart-collaterals {width:100%!important;float:none!important;max-width:none!important;}
  body.woocommerce-cart .cart-collaterals .cart_totals {
    float:right!important;width:min(100%,480px)!important;max-width:100%!important;
    box-sizing:border-box!important;
  }
}
/* Fixed BG country must still be submitted to WooCommerce and courier plugins;
   hide only the visible row, not its input or value. */
body.woocommerce-checkout:not(.woocommerce-order-received) #billing_country_field,
body.woocommerce-checkout:not(.woocommerce-order-received) #shipping_country_field {
  display:none!important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-shipping-fields:empty,
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-additional-fields:empty {
  display:none!important;
}
/* More readable cart summary; preserve native quantities and form handlers. */
body.woocommerce-cart .woocommerce-cart-form .product-name a {font-size:16px;line-height:1.4;}
body.woocommerce-cart table.cart img {width:92px!important;height:92px!important;}
body.woocommerce-cart .woocommerce-cart-form .shop_table td {font-size:15px;}
body.woocommerce-checkout .woocommerce-checkout #customer_details .form-row {min-width:0;}
body.woocommerce-checkout .woocommerce-checkout #customer_details .form-row input,
body.woocommerce-checkout .woocommerce-checkout #customer_details .form-row select {width:100%;box-sizing:border-box;}
@media (max-width:980px) {
 body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout {display:block!important;width:100%!important;}
 body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details,
 body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details .col-1,
 body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details .col-2,
 body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #order_review_heading,
 body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #order_review {float:none!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;}
}

/* v1.0.2: the native review heading and review table share one grid item.
   This prevents the much taller recipient form from inserting a blank grid row. */
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout > .cqg-order-summary{
  grid-column:2!important;grid-row:1!important;min-width:0!important;
  align-self:start;width:100%;margin:0;box-sizing:border-box;
  border:1px solid #e2e8de;border-radius:18px;background:#fffdf9;
  box-shadow:0 8px 24px rgba(45,55,40,.06);overflow:hidden;
}
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout > .cqg-order-summary #order_review_heading{
  display:block!important;width:100%!important;margin:0!important;
  padding:24px 25px 16px!important;border:0!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout > .cqg-order-summary #order_review{
  display:block!important;width:100%!important;margin:0!important;
  padding:0 25px 25px!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details{
  grid-row:1!important;align-self:start!important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-shipping-fields.cqg-no-visible-shipping{
  display:none!important;
}
@media(max-width:980px){
 body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout > .cqg-order-summary{
  display:block!important;width:100%!important;max-width:none!important;margin-top:18px!important;
 }
 body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout > .cqg-order-summary #order_review_heading{
  padding:20px 18px 12px!important;
 }
 body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout.woocommerce-checkout > .cqg-order-summary #order_review{
  padding:0 18px 20px!important;
 }
}


/* v1.0.3 — cart-page-only polish. Native WooCommerce form and cart totals
   are not reparented or replaced, preserving cart AJAX and modal synchronization. */
@media (min-width:1100px) {
  body.woocommerce-cart .entry-content > .woocommerce:has(> form.woocommerce-cart-form) {
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(315px, .34fr);
    column-gap:26px;
    row-gap:0;
    align-items:start;
  }
  body.woocommerce-cart .entry-content > .woocommerce > form.woocommerce-cart-form {
    grid-column:1;
    width:100%!important;
    min-width:0;
    margin:0!important;
  }
  body.woocommerce-cart .entry-content > .woocommerce > .cart-collaterals {
    grid-column:2;
    width:100%!important;
    min-width:0;
    margin:0!important;
  }
  body.woocommerce-cart .entry-content > .woocommerce > .cart-collaterals .cart_totals {
    float:none!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
  /* Notices and extension content must span both columns. */
  body.woocommerce-cart .entry-content > .woocommerce > :not(form.woocommerce-cart-form):not(.cart-collaterals) {
    grid-column:1 / -1;
  }
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table{
  width:100%;border-radius:18px;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table th{
  font-size:14px;padding:17px 15px;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table td{
  font-size:16px;padding:19px 14px;
}
body.woocommerce-cart table.cart img{
  width:112px!important;height:112px!important;max-width:none!important;
  object-fit:cover;border-radius:14px;
}
body.woocommerce-cart .woocommerce-cart-form .product-name a{
  font-size:17px;line-height:1.45;display:inline-block;
}
body.woocommerce-cart .woocommerce-cart-form .product-thumbnail{width:128px;}
body.woocommerce-cart .woocommerce-cart-form .product-price,
body.woocommerce-cart .woocommerce-cart-form .product-subtotal{white-space:nowrap;font-weight:600;}
body.woocommerce-cart .woocommerce-cart-form .product-remove a{
  width:30px;height:30px;display:inline-flex;align-items:center;
  justify-content:center;border-radius:50%;
}
body.woocommerce-cart .woocommerce-cart-form .quantity .qty{
  width:66px!important;text-align:center;min-height:43px;
}
body.woocommerce-cart .cart-collaterals .cart_totals{
  padding:26px!important;
}
body.woocommerce-cart .cart-collaterals .cart_totals h2{
  font-size:24px!important;line-height:1.25;margin:0 0 18px!important;
}
body.woocommerce-cart .cart-collaterals .cart_totals table th,
body.woocommerce-cart .cart-collaterals .cart_totals table td{
  background:transparent!important;padding:15px 8px!important;font-size:15px;
}
body.woocommerce-cart .cart-collaterals .cart_totals .order-total td,
body.woocommerce-cart .cart-collaterals .cart_totals .order-total th{
  font-weight:700;font-size:17px;color:#2e4c35;
}
body.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout{
  padding:18px 0 0;
}
@media (max-width:1099px){
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals{width:100%!important;max-width:none!important;}
  body.woocommerce-cart .cart-collaterals .cart_totals{
    float:none!important;width:100%!important;max-width:none!important;
    margin-top:16px;
  }
}
@media (max-width:767px){
  body.woocommerce-cart table.cart img{width:76px!important;height:76px!important;}
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td{font-size:14px;padding:12px 10px;}
  body.woocommerce-cart .woocommerce-cart-form .product-name a{font-size:15px;}
  body.woocommerce-cart .woocommerce-cart-form .quantity .qty{width:60px!important;}
}


/* v1.0.4 — thank-you / order-received page only. Classic WooCommerce markup
   remains authoritative; no changes to checkout/cart form, totals, or payment. */
body.woocommerce-order-received .entry-content > .woocommerce {
  width:min(100%, 1180px); max-width:1180px; margin-inline:auto;
  color:#2a3a2f;
}
body.woocommerce-order-received .entry-title,
body.woocommerce-order-received h1.page-title {
  color:#2c4231; font-size:clamp(28px,2.5vw,40px); margin-bottom:22px;
}
body.woocommerce-order-received .woocommerce-notice--success,
body.woocommerce-order-received .woocommerce-thankyou-order-received {
  background:#edf5e9; border:1px solid #d5e8d0; color:#2d613c;
  padding:20px 24px 20px 60px; border-radius:16px; margin:10px 0 24px;
  font-weight:650; font-size:17px; position:relative;
}
body.woocommerce-order-received .woocommerce-thankyou-order-received::before {
  content:'✓'; position:absolute; left:22px; top:18px; font-weight:800;
  display:grid; place-items:center; background:#42774a; color:white; border-radius:100%;
  width:28px; height:28px; line-height:1; font-size:19px;
}
body.woocommerce-order-received ul.woocommerce-order-overview {
  display:flex; flex-wrap:wrap; gap:10px; margin:0 0 24px!important; padding:0!important;
}
body.woocommerce-order-received ul.woocommerce-order-overview li {
  float:none!important; flex:1 1 165px; min-width:0; box-sizing:border-box;
  border:1px solid #e0e9df!important; background:#fff; border-radius:13px;
  margin:0!important; padding:14px 16px!important; overflow-wrap:anywhere;
  font-size:12px; line-height:1.6;
}
body.woocommerce-order-received ul.woocommerce-order-overview li strong {
  font-size:15px; color:#2c4231; display:block; margin-top:4px;
}
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  background:#fff; border:1px solid #e0e9df; border-radius:17px;
  padding:24px; margin:0 0 22px; box-shadow:0 8px 24px rgba(37,59,39,.04);
}
body.woocommerce-order-received .woocommerce-order-details h2,
body.woocommerce-order-received .woocommerce-customer-details h2 {
  font-size:23px!important; color:#293e30; margin:0 0 17px!important;
}
body.woocommerce-order-received .woocommerce-order-details table.shop_table {
  border:0!important; margin:0!important; border-collapse:collapse; width:100%;
}
body.woocommerce-order-received .woocommerce-order-details table.shop_table th,
body.woocommerce-order-received .woocommerce-order-details table.shop_table td {
  padding:14px 12px!important; border-bottom:1px solid #e6ece5!important;
  background:transparent!important; vertical-align:middle; font-size:15px;
}
body.woocommerce-order-received .woocommerce-order-details table.shop_table th:last-child,
body.woocommerce-order-received .woocommerce-order-details table.shop_table td:last-child {
  text-align:right; white-space:nowrap;
}
body.woocommerce-order-received .cqg-received-item {
  display:inline-flex; align-items:center; gap:14px; min-width:0;
}
body.woocommerce-order-received img.cqg-received-item-photo {
  display:block; flex:0 0 72px; width:72px!important; height:72px!important;
  object-fit:cover; border-radius:11px; border:1px solid #e9ede8;
}
body.woocommerce-order-received .cqg-received-item-name a {
  color:#2f623f; font-weight:600; text-decoration:none;
}
body.woocommerce-order-received .woocommerce-customer-details address {
  background:#f7f9f4!important; border:0!important; border-radius:12px;
  padding:18px 20px!important; line-height:1.8; font-style:normal;
}
body.woocommerce-order-received .cqg-received-footer {
  text-align:center; margin:20px 0 5px;
}
body.woocommerce-order-received .cqg-received-shop-link {
  display:inline-flex!important; justify-content:center; align-items:center;
  color:#fff!important; background:#547e46!important; border:0!important;
  border-radius:12px!important; font-size:16px!important; font-weight:650!important;
  text-decoration:none!important; padding:15px 28px!important; line-height:1.35!important;
}
body.woocommerce-order-received .cqg-received-shop-link:hover {background:#3c6435!important;}
@media(max-width:720px) {
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details {padding:16px;}
  body.woocommerce-order-received img.cqg-received-item-photo {width:56px!important;height:56px!important;flex-basis:56px;}
  body.woocommerce-order-received .cqg-received-item {gap:8px;}
  body.woocommerce-order-received .woocommerce-order-details table.shop_table th,
  body.woocommerce-order-received .woocommerce-order-details table.shop_table td {padding:10px 5px!important;font-size:13px;}
}

/* v1.0.6 — delivery price and payment information; cart and checkout calculations unchanged. */
body.woocommerce-checkout .cqg-delivery-notice {
  margin:18px 0 22px;
  padding:18px 20px;
  background:#f3f7ee;
  border:1px solid #d5e4cb;
  border-left:4px solid #6f8a58;
  border-radius:12px;
  box-sizing:border-box;
  color:#263b2a;
  font-size:14px;
  line-height:1.6;
}
body.woocommerce-checkout .cqg-delivery-notice h3 {
  margin:0 0 10px;
  color:#2f5838;
  font-size:17px;
  line-height:1.35;
}
body.woocommerce-checkout .cqg-delivery-notice p { margin:0 0 9px; }
body.woocommerce-checkout .cqg-delivery-notice p:last-child {margin-bottom:0;}
