/* EKOTEKS v11.7 — approved storefront + cart/mobility refinements.
   Intentionally does NOT target #payment, .payment_box or bank selection markup. */

/* Legacy /parduotuve/ is now a real catalogue, not four full-height promo cards. */
.ek-shop-landing .ek-shop-intro {padding:12px 0 8px;max-width:760px;}
.ek-shop-landing .ek-shop-intro h1 {font-size:clamp(36px,4.4vw,54px);margin:9px 0 11px;}
.ek-shop-landing .ek-shop-intro p {font-size:14px;color:#6a806e;margin:0;max-width:640px;}
.ek-shop-landing .ek-shop-categories {margin-top:22px;}
.ek-shop-landing .ek-shop-categories .section-head,
.ek-shop-landing .ek-shop-products .section-head {margin-bottom:16px;}
.ek-shop-landing .ek-shop-products {margin-top:33px;}
.ek-shop-landing .ek-shop-products .woocommerce {min-width:0;max-width:100%;}
.ek-shop-landing .ek-shop-products ul.products {margin:0!important;}
.ek-shop-landing .woocommerce nav.woocommerce-pagination {padding:18px 0 4px;}
/* Reuse the four APPROVED home category images and their gentle gradient. */
.ek-shop-landing #ek-categories .category-tile {
  min-height:174px;
  overflow:hidden;
  border-radius:19px;
  box-shadow:0 5px 13px rgba(38,59,37,.055);
}
.ek-shop-landing #ek-categories .category-tile .tile-photo {width:61%;}
.ek-shop-landing #ek-categories .category-tile .category-copy {max-width:69%;}
.ek-shop-landing #ek-categories .category-tile .category-heading {font-size:clamp(18px,1.75vw,24px);}

/* Cart ONLY: hide redundant carrier imagery and text / calculator prompt.
   Keep the real shipping rates, labels, dropdown and checkout delivery selection. */
body.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
body.woocommerce-cart .cart_totals .woocommerce-shipping-calculator,
body.woocommerce-cart .cart_totals p.woocommerce-shipping-calculator,
body.woocommerce-cart .cart_totals .shipping-calculator-button,
body.woocommerce-cart .cart_totals .shipping-calculator-form,
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods img,
body.woocommerce-cart .cart_totals #shipping_method img,
body.woocommerce-cart .cart_totals tr.shipping img {display:none!important;}
body.woocommerce-cart .cart_totals ul#shipping_method,
body.woocommerce-cart .cart_totals ul#shipping_method li,
body.woocommerce-cart .cart_totals ul#shipping_method label {
  min-width:0;max-width:100%;overflow-wrap:anywhere;
}
body.woocommerce-cart .cart_totals select {
  width:100%!important;max-width:100%!important;min-width:0!important;
  padding-right:36px!important;text-overflow:ellipsis;
}
body.woocommerce-cart .cart_totals .select2-container {width:100%!important;max-width:100%!important;min-width:0;}
body.woocommerce-cart .cart_totals .select2-selection__rendered {padding-right:36px!important;}
body.woocommerce-cart .cart_totals .select2-selection__arrow {right:9px!important;}

/* Prevent prices and names from escaping a container without modifying payments. */
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout #order_review,
body.woocommerce-cart .woocommerce .cart-collaterals,
body.woocommerce-cart .woocommerce .cart_totals,
body.woocommerce-cart .woocommerce .cart_totals .shop_table {
  box-sizing:border-box;min-width:0;max-width:100%;
}
body.woocommerce-checkout #order_review table.shop_table,
body.woocommerce-cart .cart_totals table.shop_table {
  width:100%;max-width:100%;min-width:0;
}
body.woocommerce-checkout #order_review table.shop_table td,
body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td,
body.woocommerce-cart .cart_totals table.shop_table th {
  min-width:0;max-width:100%;overflow-wrap:anywhere;
}
body.woocommerce-checkout #order_review table.shop_table .woocommerce-Price-amount,
body.woocommerce-cart .cart_totals table.shop_table .woocommerce-Price-amount {
  white-space:nowrap;font-variant-numeric:tabular-nums;
}
/* Select stays inside shipping cell and arrow never overlays the address text. */
body.woocommerce-checkout #order_review tr.shipping td select,
body.woocommerce-cart .cart_totals tr.shipping td select {
  display:block;box-sizing:border-box;width:100%!important;max-width:100%!important;
  min-width:0!important;padding-right:38px!important;text-overflow:ellipsis;
}
body.woocommerce-checkout #order_review tr.shipping td .select2-container,
body.woocommerce-cart .cart_totals tr.shipping td .select2-container {
  max-width:100%!important;min-width:0!important;width:100%!important;
}
body.woocommerce-checkout #order_review tr.shipping td #shipping_method,
body.woocommerce-cart .cart_totals tr.shipping td #shipping_method {max-width:100%;min-width:0;}

@media(max-width:820px) {
  .ek-shop-landing .ek-shop-products .woocommerce ul.products {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table.shop_table,
  body.woocommerce-checkout #order_review table.shop_table {table-layout:fixed;}
  body.woocommerce-checkout #order_review .ek-checkout-product,
  body.woocommerce-checkout #order_review .ek-checkout-product-label {
    min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal;
  }
}
@media(max-width:600px) {
  .ek-shop-landing .ek-shop-intro {padding-top:6px;}
  .ek-shop-landing .ek-shop-intro h1 {font-size:35px;}
  .ek-shop-landing .ek-shop-intro p {font-size:12px;line-height:1.5;}
  .ek-shop-landing #ek-categories .category-row {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .ek-shop-landing #ek-categories .category-tile {min-height:152px;}
  .ek-shop-landing #ek-categories .category-tile .category-copy {max-width:74%;padding:13px 10px;}
  .ek-shop-landing #ek-categories .category-tile .category-heading {font-size:16px;}
  .ek-shop-landing #ek-categories .category-tile .category-copy small {display:none;}
  .ek-shop-landing .ek-shop-products .woocommerce ul.products {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px;}
  .ek-shop-landing .ek-shop-products .woocommerce ul.products li.product {
    min-width:0!important;grid-template-columns:1fr!important;display:flex!important;flex-direction:column!important;
  }
  .ek-shop-landing .ek-shop-products .woocommerce ul.products li.product .ek-product-image {min-height:125px;padding:7px;}
  .ek-shop-landing .ek-shop-products .woocommerce ul.products li.product .ek-product-image img {height:110px!important;}
  .ek-shop-landing .ek-shop-products .woocommerce ul.products li.product .ek-product-copy {padding:10px 11px 13px;flex:1;}
  .ek-shop-landing .ek-shop-products .woocommerce ul.products li.product .ek-product-name {font-size:11px;}

  /* Checkout mobile: full-width delivery row, independent of narrow price column. */
  body.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping,
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;max-width:100%!important;
  }
  body.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping th,
  body.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping td,
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping th,
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping td {
    display:block!important;grid-column:1!important;width:100%!important;
    max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
    padding-left:0!important;padding-right:0!important;text-align:left!important;
  }
  body.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping th,
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping th {padding-bottom:3px!important;}
  body.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping td,
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping td {padding-top:4px!important;}
  body.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping ul#shipping_method li,
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping ul#shipping_method li {text-align:left!important;white-space:normal!important;max-width:100%;}
  body.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping ul#shipping_method label,
  body.woocommerce-cart .cart_totals table.shop_table tr.shipping ul#shipping_method label {white-space:normal!important;overflow-wrap:anywhere;}
  body.woocommerce-checkout #order_review table.shop_table .product-total {width:88px!important;max-width:33%;font-size:12px;}
  body.woocommerce-checkout #order_review table.shop_table td.product-name {width:auto!important;overflow-wrap:anywhere;}
  body.woocommerce-cart .cart_totals table.shop_table th {width:32%;font-size:11px;}
  body.woocommerce-cart .cart_totals table.shop_table td {width:auto;min-width:0;overflow-wrap:anywhere;}
  body.woocommerce-checkout #order_review .woocommerce-Price-amount,
  body.woocommerce-cart .cart_totals .woocommerce-Price-amount {font-size:inherit;white-space:nowrap;}
}
@media(max-width:355px) {
  .ek-shop-landing #ek-categories .category-tile .category-copy {max-width:76%;padding:10px 8px;}
  .ek-shop-landing #ek-categories .category-tile .category-heading {font-size:14px;}
  .ek-shop-landing #ek-categories .category-tile .eyebrow {font-size:7px;letter-spacing:.06em;}
  .ek-shop-landing .ek-shop-products .woocommerce ul.products li.product .ek-product-add a.button {font-size:10px!important;padding:8px!important;}
}

/* Narrow screens: Woo table column calculations must not make the shipping
   dropdown only 100px wide. Keep monetary rows two-column, shipping full-width. */
@media(max-width:600px){
  body.woocommerce-cart .cart_totals table.shop_table,
  body.woocommerce-cart .cart_totals table.shop_table tbody {
    display:block!important;width:100%!important;max-width:100%!important;
  }
  body.woocommerce-cart .cart_totals table.shop_table tbody tr {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start;
    width:100%!important;max-width:100%!important;
  }
  body.woocommerce-cart .cart_totals table.shop_table tbody tr >th,
  body.woocommerce-cart .cart_totals table.shop_table tbody tr >td {
    display:block!important;min-width:0!important;max-width:100%!important;width:auto!important;
  }
  body.woocommerce-cart .cart_totals table.shop_table tbody tr.shipping {
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.woocommerce-cart .cart_totals table.shop_table tbody tr.shipping >th,
  body.woocommerce-cart .cart_totals table.shop_table tbody tr.shipping >td {
    width:100%!important;grid-column:1!important;
  }
  body.woocommerce-checkout #order_review table.shop_table tfoot {
    display:block!important;width:100%!important;max-width:100%!important;
  }
  body.woocommerce-checkout #order_review table.shop_table tfoot tr {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start;
    width:100%!important;max-width:100%!important;
  }
  body.woocommerce-checkout #order_review table.shop_table tfoot tr >th,
  body.woocommerce-checkout #order_review table.shop_table tfoot tr >td {
    display:block!important;min-width:0!important;width:auto!important;max-width:100%!important;
  }
  body.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping {
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping >th,
  body.woocommerce-checkout #order_review table.shop_table tfoot tr.shipping >td {
    width:100%!important;grid-column:1!important;
  }
}
