.ewal-button-wrap{margin-top:12px}.ewal-start{width:100%;min-height:52px;background:#eef5ff!important;border:1px solid #93b9e8!important;color:#102b54!important;font-weight:800!important}.ewal-start:hover{background:#102b54!important;color:#fff!important}.ewal-shell{--navy:#102b54;--gold:#bd8b2d;--line:#ddd8cd;max-width:1180px;margin:25px auto 50px;font-family:Arial,sans-serif;color:#12213a}.ewal-context{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.ewal-context>div{display:flex;align-items:center;gap:12px}.ewal-context img{width:100px;height:65px;object-fit:contain}.ewal-layout{display:grid;grid-template-columns:230px 1fr;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fdfbf7}.ewal-layout aside{background:#f4efe4;border-right:1px solid var(--line)}.ewal-build{padding:20px 16px;font-size:11px;font-weight:800;letter-spacing:.08em}.ewal-build b{float:right}.ewal-nav{display:flex;width:100%;gap:12px;align-items:center;padding:15px;border:0;border-left:4px solid transparent;background:transparent;text-align:left;cursor:pointer}.ewal-nav small{font-weight:800;color:#8b8f96}.ewal-nav span{font-weight:700}.ewal-nav.active{background:#fff;border-left-color:var(--gold)}.ewal-layout main{padding:30px;min-width:0}.ewal-step{display:none}.ewal-step.active{display:block}.ewal-step header{display:flex;gap:15px;align-items:flex-start;margin-bottom:25px}.ewal-step header>span{font-size:12px;font-weight:900;color:var(--gold);padding-top:8px}.ewal-step h2{margin:0;font-size:30px}.ewal-step header p{margin:5px 0;color:#6f7380}.ewal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ewal-card{position:relative;display:block;min-height:145px;padding:20px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}.ewal-card>input{position:absolute;opacity:0}.ewal-card.selected{border:2px solid var(--navy);padding:19px;box-shadow:0 4px 15px rgba(16,43,84,.08)}.ewal-card strong{display:block;font-size:17px}.ewal-card em{display:block;margin:4px 0;color:#6f7380;font-size:12px;font-style:normal}.ewal-card p{font-size:12px;line-height:1.5;color:#555}.ewal-card>b{position:absolute;right:15px;top:15px;font-size:12px;color:#397ed1}.ewal-colors,.ewal-coating-colors{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.ewal-colors label,.ewal-coating-colors label{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9px}.ewal-colors input,.ewal-coating-colors input{position:absolute;opacity:0}.ewal-colors i,.ewal-coating-colors i{width:25px;height:25px;border-radius:50%;background:var(--swatch);border:2px solid #fff;box-shadow:0 0 0 1px #aaa}.ewal-colors input:checked+i,.ewal-coating-colors input:checked+i{box-shadow:0 0 0 3px var(--navy)}.ewal-coatings{display:flex;flex-direction:column;gap:10px}.ewal-coating{border:1px solid var(--line);border-radius:8px;background:#fff;padding:14px}.ewal-coating.selected{border-color:var(--navy)}.ewal-coating>label{display:grid;grid-template-columns:24px 1fr auto;gap:10px;cursor:pointer}.ewal-coating span>*{display:block}.ewal-coating em{font-size:11px;color:#6f7380;font-style:normal}.ewal-coating small{margin-top:5px;color:#555}.ewal-coating b{color:#397ed1}.ewal-rx-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:22px}.ewal-rx-modes label{padding:14px;border:1px solid var(--line);border-radius:7px;background:#fff}.ewal-rx-grid{display:grid;grid-template-columns:100px repeat(4,1fr);gap:7px;align-items:center}.ewal-rx-grid input,.ewal-pd input{padding:10px;border:1px solid #bbb;border-radius:5px}.ewal-pd{display:block;margin-top:15px;font-weight:700}.ewal-actions{position:sticky;bottom:0;display:flex;align-items:center;gap:12px;margin:30px -30px -30px;padding:15px 30px;background:#fff;border-top:1px solid var(--line)}.ewal-actions>.button{min-width:120px}.ewal-total{margin-left:auto;text-align:right}.ewal-total small{display:block;font-size:9px;font-weight:800}.ewal-total strong{font-size:20px}.ewal-edit{font-size:12px;font-weight:700}
@media(max-width:780px){.ewal-shell{margin:10px 5px 30px}.ewal-context{align-items:flex-start;gap:8px}.ewal-context>div strong{display:none}.ewal-layout{display:block}.ewal-layout aside{display:flex;overflow:auto;border-right:0;border-bottom:1px solid var(--line)}.ewal-build{display:none}.ewal-nav{min-width:110px;border-left:0;border-bottom:3px solid transparent}.ewal-nav.active{border-left:0;border-bottom-color:var(--gold)}.ewal-layout main{padding:20px 12px}.ewal-grid{grid-template-columns:1fr}.ewal-rx-modes{grid-template-columns:1fr}.ewal-rx-grid{grid-template-columns:82px repeat(4,minmax(68px,1fr));overflow:auto}.ewal-actions{margin:25px -12px -20px;padding:12px}.ewal-actions>.button{min-width:85px;padding-left:10px;padding-right:10px}.ewal-total strong{font-size:16px}}

/* v1.1 UI refinements */
.single-product form.cart .ewal-button-wrap{margin:0 0 0 12px!important;display:inline-flex!important;vertical-align:top;align-self:stretch}
.single-product form.cart .ewal-button-wrap .ewal-start{width:auto!important;min-width:185px;min-height:67px;height:100%;padding:0 24px!important;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.ewal-card>b,.ewal-coating b{white-space:nowrap;word-break:keep-all;min-width:82px;text-align:right}
.ewal-coating>label{grid-template-columns:30px minmax(0,1fr) 100px;align-items:start}
.ewal-colors,.ewal-coating-colors{gap:12px;margin-top:16px;position:relative;z-index:3}
.ewal-colors label,.ewal-coating-colors label{position:relative;min-width:58px;padding:7px 5px;border:1px solid transparent;border-radius:8px;cursor:pointer;transition:.15s ease;background:#fff}
.ewal-colors label:hover,.ewal-coating-colors label:hover{border-color:#9eb4ce;background:#f5f9ff}
.ewal-colors i,.ewal-coating-colors i{width:34px;height:34px;border:3px solid #fff;box-shadow:0 0 0 1px #8d96a3;position:relative}
.ewal-colors label.color-selected,.ewal-coating-colors label.color-selected{border-color:var(--navy);background:#eef5ff;box-shadow:0 0 0 1px var(--navy)}
.ewal-colors label.color-selected i,.ewal-coating-colors label.color-selected i{box-shadow:0 0 0 3px var(--navy)}
.ewal-colors label.color-selected:after,.ewal-coating-colors label.color-selected:after{content:'✓';position:absolute;right:2px;top:1px;width:17px;height:17px;border-radius:50%;background:var(--navy);color:#fff;font-size:11px;line-height:17px;text-align:center;font-weight:900}
.ewal-colors small,.ewal-coating-colors small{font-size:10px!important;line-height:1.15;text-align:center;font-weight:700;color:#25354c}
.ewal-edit{display:inline-block;margin-top:7px;padding:5px 10px;border:1px solid #9eb4ce;border-radius:5px;background:#eef5ff;color:#102b54!important;text-decoration:none!important;font-weight:800}
.ewal-edit:hover{background:#102b54;color:#fff!important}
.woocommerce-cart .wc-block-components-product-details__frame,
.woocommerce-checkout .wc-block-components-product-details__frame{font-weight:700}
@media(max-width:780px){.single-product form.cart .ewal-button-wrap{margin:10px 0 0!important;width:100%}.single-product form.cart .ewal-button-wrap .ewal-start{width:100%!important;min-height:54px}.ewal-coating>label{grid-template-columns:28px minmax(0,1fr) 86px}.ewal-colors label,.ewal-coating-colors label{min-width:54px}}

/* v1.2 cart/checkout presentation */
.ewal-cart-thumb{width:100%!important;height:100%!important;max-width:110px!important;max-height:90px!important;object-fit:contain!important;background:#fff}
.woocommerce-cart .wc-block-components-product-details,
.woocommerce-checkout .wc-block-components-product-details{margin-top:12px!important;padding:14px 16px!important;border:1px solid #d9e1eb!important;border-radius:8px!important;background:#f8fbff!important;max-width:760px!important}
.woocommerce-cart .wc-block-components-product-details li,
.woocommerce-checkout .wc-block-components-product-details li{display:grid!important;grid-template-columns:minmax(145px,180px) minmax(0,1fr)!important;gap:12px!important;margin:0!important;padding:7px 0!important;border-bottom:1px solid #e4e9ef!important;line-height:1.35!important;align-items:start!important}
.woocommerce-cart .wc-block-components-product-details li:last-child,
.woocommerce-checkout .wc-block-components-product-details li:last-child{border-bottom:0!important}
.woocommerce-cart .wc-block-components-product-details__name,
.woocommerce-checkout .wc-block-components-product-details__name{font-weight:800!important;color:#102b54!important}
.woocommerce-cart .wc-block-components-product-details__value,
.woocommerce-checkout .wc-block-components-product-details__value{margin:0!important;color:#1e293b!important}
.woocommerce-cart .wc-block-components-product-details li:nth-last-child(3),
.woocommerce-cart .wc-block-components-product-details li:nth-last-child(2),
.woocommerce-checkout .wc-block-components-product-details li:nth-last-child(3),
.woocommerce-checkout .wc-block-components-product-details li:nth-last-child(2){font-weight:800!important;background:#fff!important}
.woocommerce-cart .ewal-edit,.woocommerce-checkout .ewal-edit{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:7px 14px!important;border:1px solid #397ed1!important;border-radius:6px!important;background:#eef5ff!important;color:#102b54!important;font-weight:800!important;text-decoration:none!important}
.woocommerce-cart .ewal-edit:hover,.woocommerce-checkout .ewal-edit:hover{background:#102b54!important;color:#fff!important}
/* Classic cart/checkout fallback */
.woocommerce-cart dl.variation,.woocommerce-checkout dl.variation{display:grid!important;grid-template-columns:minmax(145px,180px) minmax(0,1fr)!important;gap:0 12px!important;margin-top:12px!important;padding:14px 16px!important;border:1px solid #d9e1eb!important;border-radius:8px!important;background:#f8fbff!important}
.woocommerce-cart dl.variation dt,.woocommerce-cart dl.variation dd,.woocommerce-checkout dl.variation dt,.woocommerce-checkout dl.variation dd{float:none!important;clear:none!important;margin:0!important;padding:7px 0!important;border-bottom:1px solid #e4e9ef!important}
.woocommerce-cart dl.variation dt,.woocommerce-checkout dl.variation dt{font-weight:800!important;color:#102b54!important}
.woocommerce-cart dl.variation dd p,.woocommerce-checkout dl.variation dd p{margin:0!important}
/* Stronger option/color selected state */
.ewal-card.selected{border:2px solid #bd8b2d!important;background:#fffdf7!important;box-shadow:0 0 0 2px rgba(189,139,45,.12)!important}
.ewal-colors label.color-selected,.ewal-coating-colors label.color-selected{border:2px solid #bd8b2d!important;background:#fff8e7!important;box-shadow:0 0 0 2px rgba(189,139,45,.18)!important}
.ewal-colors label.color-selected i,.ewal-coating-colors label.color-selected i{box-shadow:0 0 0 4px #bd8b2d!important}
.ewal-colors label.color-selected:after,.ewal-coating-colors label.color-selected:after{background:#bd8b2d!important}
@media(max-width:700px){.woocommerce-cart .wc-block-components-product-details li,.woocommerce-checkout .wc-block-components-product-details li,.woocommerce-cart dl.variation,.woocommerce-checkout dl.variation{grid-template-columns:1fr!important;gap:2px!important}.woocommerce-cart .wc-block-components-product-details__value,.woocommerce-checkout .wc-block-components-product-details__value{padding-left:0!important}}

/* v1.3 hard overrides: Expressiwear theme + WooCommerce Blocks */
/* Keep every option price horizontal, regardless of theme rules on Woo price markup. */
.ewal-shell .ewal-card > b,
.ewal-shell .ewal-coating > label > b{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:baseline!important;
  justify-content:flex-end!important;
  gap:0!important;
  width:auto!important;
  min-width:105px!important;
  max-width:none!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  line-height:1.2!important;
}
.ewal-shell .ewal-card > b *,
.ewal-shell .ewal-coating > label > b *,
.ewal-shell .ewal-card > b .woocommerce-Price-amount,
.ewal-shell .ewal-coating > label > b .woocommerce-Price-amount,
.ewal-shell .ewal-card > b .woocommerce-Price-currencySymbol,
.ewal-shell .ewal-coating > label > b .woocommerce-Price-currencySymbol{
  display:inline!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important;
  word-break:normal!important;
  line-height:inherit!important;
}
.ewal-shell .ewal-coating > label{grid-template-columns:30px minmax(0,1fr) max-content!important;column-gap:14px!important}
.ewal-shell .ewal-coating small{white-space:normal!important;line-height:1.55!important}

/* Strong selected-state treatment. */
.ewal-shell .ewal-card.selected{border:2px solid #102b54!important;background:#f8fbff!important;box-shadow:0 0 0 1px #102b54,0 5px 16px rgba(16,43,84,.10)!important}
.ewal-shell .ewal-colors label.color-selected,
.ewal-shell .ewal-coating-colors label.color-selected{border:2px solid #102b54!important;background:#eef5ff!important;box-shadow:0 0 0 2px rgba(16,43,84,.10)!important}

/* Product page: force quantity, Add to Cart and Add Lenses into one aligned row. */
.single-product form.cart{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:12px!important}
.single-product form.cart .quantity{margin:0!important;display:flex!important;align-items:stretch!important}
.single-product form.cart .single_add_to_cart_button{margin:0!important;min-height:68px!important;height:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.single-product form.cart .ewal-button-wrap{margin:0!important;display:flex!important;align-items:stretch!important}
.single-product form.cart .ewal-button-wrap .ewal-start{margin:0!important;min-height:68px!important;height:100%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}

/* Configured-item details: classic WooCommerce cart/checkout. */
.woocommerce-cart dl.variation,
.woocommerce-checkout dl.variation{
  display:grid!important;
  grid-template-columns:180px minmax(0,1fr)!important;
  margin:14px 0 8px!important;
  padding:14px 16px!important;
  gap:0 14px!important;
  border:1px solid #d9e1eb!important;
  border-radius:8px!important;
  background:#f8fbff!important;
  max-width:720px!important;
}
.woocommerce-cart dl.variation dt,
.woocommerce-cart dl.variation dd,
.woocommerce-checkout dl.variation dt,
.woocommerce-checkout dl.variation dd{
  float:none!important;clear:none!important;width:auto!important;
  margin:0!important;padding:7px 0!important;
  border-bottom:1px solid #e2e8f0!important;
  line-height:1.35!important;
}
.woocommerce-cart dl.variation dt,
.woocommerce-checkout dl.variation dt{font-weight:800!important;color:#102b54!important}
.woocommerce-cart dl.variation dd,
.woocommerce-checkout dl.variation dd{color:#1e293b!important}
.woocommerce-cart dl.variation dd p,
.woocommerce-checkout dl.variation dd p{margin:0!important;padding:0!important}
.woocommerce-cart dl.variation dt:last-of-type,
.woocommerce-cart dl.variation dd:last-of-type,
.woocommerce-checkout dl.variation dt:last-of-type,
.woocommerce-checkout dl.variation dd:last-of-type{border-bottom:0!important}

/* Configured-item details: WooCommerce Cart/Checkout Blocks. */
.woocommerce-cart ul.wc-block-components-product-details,
.woocommerce-checkout ul.wc-block-components-product-details{
  display:block!important;margin:14px 0 8px!important;padding:14px 16px!important;
  border:1px solid #d9e1eb!important;border-radius:8px!important;background:#f8fbff!important;max-width:720px!important
}
.woocommerce-cart ul.wc-block-components-product-details > li,
.woocommerce-checkout ul.wc-block-components-product-details > li{
  display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;gap:14px!important;
  margin:0!important;padding:7px 0!important;border-bottom:1px solid #e2e8f0!important;align-items:start!important
}
.woocommerce-cart ul.wc-block-components-product-details > li:last-child,
.woocommerce-checkout ul.wc-block-components-product-details > li:last-child{border-bottom:0!important}
.woocommerce-cart .wc-block-components-product-details__name,
.woocommerce-checkout .wc-block-components-product-details__name{font-weight:800!important;color:#102b54!important}
.woocommerce-cart .wc-block-components-product-details__value,
.woocommerce-checkout .wc-block-components-product-details__value{margin:0!important;color:#1e293b!important}

/* External product image in cart. */
.woocommerce-cart .ewal-cart-thumb,
.woocommerce-checkout .ewal-cart-thumb{display:block!important;width:110px!important;height:90px!important;max-width:110px!important;object-fit:contain!important;background:#fff!important}

.woocommerce-cart a.ewal-edit,
.woocommerce-checkout a.ewal-edit{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-top:9px!important;padding:8px 14px!important;min-height:38px!important;border:1px solid #397ed1!important;border-radius:6px!important;background:#eef5ff!important;color:#102b54!important;font-weight:800!important;text-decoration:none!important}
.woocommerce-cart a.ewal-edit:hover,
.woocommerce-checkout a.ewal-edit:hover{background:#102b54!important;color:#fff!important}

@media(max-width:780px){
 .single-product form.cart{gap:8px!important}
 .single-product form.cart .ewal-button-wrap{width:100%!important}
 .single-product form.cart .ewal-button-wrap .ewal-start{width:100%!important;min-height:54px!important}
 .ewal-shell .ewal-coating > label{grid-template-columns:28px minmax(0,1fr) max-content!important}
 .ewal-shell .ewal-card > b,.ewal-shell .ewal-coating > label > b{min-width:82px!important;font-size:12px!important}
 .woocommerce-cart dl.variation,.woocommerce-checkout dl.variation,
 .woocommerce-cart ul.wc-block-components-product-details,.woocommerce-checkout ul.wc-block-components-product-details{grid-template-columns:1fr!important;padding:12px!important}
 .woocommerce-cart dl.variation dt,.woocommerce-checkout dl.variation dt{padding-bottom:2px!important;border-bottom:0!important}
 .woocommerce-cart dl.variation dd,.woocommerce-checkout dl.variation dd{padding-top:0!important}
 .woocommerce-cart ul.wc-block-components-product-details > li,.woocommerce-checkout ul.wc-block-components-product-details > li{grid-template-columns:1fr!important;gap:2px!important}
}

/* v1.4 frame imagery, cart breakdown and independent eyewear/lens controls */
.ewal-context{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:24px!important;align-items:center!important}
.ewal-back{white-space:nowrap;font-weight:700}
.ewal-frame-summary{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:16px!important;min-width:0}
.ewal-frame-summary img{width:180px!important;height:115px!important;object-fit:contain!important;background:#fff!important;border:1px solid #e1e5ea!important;border-radius:10px!important;padding:8px!important}
.ewal-frame-summary>div{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;min-width:0;max-width:620px}
.ewal-frame-summary small{font-size:10px!important;letter-spacing:.09em!important;font-weight:900!important;color:#bd8b2d!important}
.ewal-frame-summary strong{font-size:16px!important;line-height:1.25!important}
.ewal-frame-summary span{font-size:13px!important;font-weight:800!important;color:#102b54!important}

/* WooCommerce Blocks use Store API images; make the external frame photo large and clean. */
.woocommerce-cart .wc-block-cart-item__image img,
.woocommerce-checkout .wc-block-components-order-summary-item__image img{object-fit:contain!important;background:#fff!important;width:100%!important;height:auto!important;min-height:90px!important}
.woocommerce-cart .wc-block-cart-item__image{width:130px!important;max-width:130px!important}
.woocommerce-checkout .wc-block-components-order-summary-item__image{width:82px!important;min-width:82px!important}

/* One readable itemized price panel instead of an inline metadata sentence. */
.woocommerce-cart .wc-block-components-product-details__ewal_breakdown,
.woocommerce-checkout .wc-block-components-product-details__ewal_breakdown{display:block!important;padding:0!important;border:0!important}
.woocommerce-cart .wc-block-components-product-details__ewal_breakdown .wc-block-components-product-details__name,
.woocommerce-checkout .wc-block-components-product-details__ewal_breakdown .wc-block-components-product-details__name{display:none!important}
.ewal-breakdown{display:block!important;width:100%!important;background:#f8fbff!important;border:1px solid #d9e1eb!important;border-radius:10px!important;padding:12px 14px!important;box-sizing:border-box!important}
.ewal-breakdown>div{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:14px!important;align-items:start!important;padding:7px 0!important;border-bottom:1px solid #e3e9f0!important}
.ewal-breakdown>div:last-child{border-bottom:0!important}
.ewal-breakdown span{font-weight:800!important;color:#102b54!important}
.ewal-breakdown span em{display:block!important;font-size:12px!important;font-style:normal!important;font-weight:500!important;color:#475569!important;margin-top:2px!important}
.ewal-breakdown strong{white-space:nowrap!important;color:#111827!important}
.ewal-breakdown .ewal-subtotal{margin-top:4px!important;border-top:2px solid #cad5e2!important}
.ewal-breakdown .ewal-grandtotal{font-size:15px!important;background:#eef5ff!important;margin:0 -8px!important;padding:9px 8px!important;border-radius:6px!important}
.ewal-breakdown .ewal-rx-summary strong{white-space:normal!important;text-align:right!important;font-size:12px!important}

.woocommerce-cart .wc-block-components-product-details__ewal_actions,
.woocommerce-checkout .wc-block-components-product-details__ewal_actions{display:block!important;padding:0!important;border:0!important}
.woocommerce-cart .wc-block-components-product-details__ewal_actions .wc-block-components-product-details__name,
.woocommerce-checkout .wc-block-components-product-details__ewal_actions .wc-block-components-product-details__name{display:none!important}
.ewal-cart-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:10px!important}
.ewal-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:8px 11px!important;border-radius:6px!important;border:1px solid #9eb4ce!important;background:#fff!important;color:#102b54!important;font-size:12px!important;font-weight:800!important;text-decoration:none!important;line-height:1.2!important}
.ewal-action:hover{background:#102b54!important;color:#fff!important;border-color:#102b54!important}
.ewal-remove-lenses,.ewal-remove-frame{border-color:#d8a1a1!important;color:#9b1c1c!important;background:#fffafa!important}
.ewal-remove-lenses:hover,.ewal-remove-frame:hover{background:#9b1c1c!important;color:#fff!important;border-color:#9b1c1c!important}

@media(max-width:780px){
 .ewal-context{grid-template-columns:1fr!important;gap:10px!important}
 .ewal-frame-summary{justify-content:flex-start!important;align-items:flex-start!important}
 .ewal-frame-summary img{width:120px!important;height:85px!important}
 .ewal-frame-summary strong{font-size:13px!important}
 .woocommerce-cart .wc-block-cart-item__image{width:90px!important;max-width:90px!important}
 .ewal-breakdown>div{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
 .ewal-cart-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
}

/* v1.5 polished Cart + Checkout presentation */
.woocommerce-cart ul.wc-block-components-product-details,
.woocommerce-checkout ul.wc-block-components-product-details{
  margin:18px 0 12px!important;
  padding:16px 18px!important;
  background:#f8fafc!important;
  border:1px solid #dbe3ec!important;
  border-radius:12px!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
  box-sizing:border-box!important;
}
.woocommerce-cart ul.wc-block-components-product-details>li,
.woocommerce-checkout ul.wc-block-components-product-details>li{
  display:grid!important;
  grid-template-columns:minmax(120px,38%) minmax(0,1fr)!important;
  column-gap:18px!important;
  align-items:start!important;
  margin:0!important;
  padding:8px 0!important;
  border-bottom:1px solid #e5eaf0!important;
  line-height:1.35!important;
}
.woocommerce-cart ul.wc-block-components-product-details>li:last-child,
.woocommerce-checkout ul.wc-block-components-product-details>li:last-child{border-bottom:0!important;padding-bottom:2px!important}
.woocommerce-cart .wc-block-components-product-details__name,
.woocommerce-checkout .wc-block-components-product-details__name{
  display:block!important;margin:0!important;padding:0!important;
  font-size:13px!important;line-height:1.35!important;font-weight:800!important;color:#334155!important;
  overflow-wrap:normal!important;word-break:normal!important;
}
.woocommerce-cart .wc-block-components-product-details__value,
.woocommerce-checkout .wc-block-components-product-details__value{
  display:block!important;margin:0!important;padding:0!important;
  font-size:13px!important;line-height:1.4!important;font-weight:500!important;color:#0f172a!important;
  overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;
}
/* Totals stand out without making the panel noisy. */
.woocommerce-cart .wc-block-components-product-details__ewal_lens_total,
.woocommerce-checkout .wc-block-components-product-details__ewal_lens_total{margin-top:4px!important;border-top:1px solid #cbd5e1!important}
.woocommerce-cart .wc-block-components-product-details__ewal_grand_total,
.woocommerce-checkout .wc-block-components-product-details__ewal_grand_total{
  margin:4px -8px 0!important;padding:10px 8px!important;border:0!important;border-radius:7px!important;background:#eef4fb!important
}
.woocommerce-cart .wc-block-components-product-details__ewal_grand_total .wc-block-components-product-details__name,
.woocommerce-cart .wc-block-components-product-details__ewal_grand_total .wc-block-components-product-details__value,
.woocommerce-checkout .wc-block-components-product-details__ewal_grand_total .wc-block-components-product-details__name,
.woocommerce-checkout .wc-block-components-product-details__ewal_grand_total .wc-block-components-product-details__value{font-weight:900!important;color:#102b54!important}
/* Manage row: roomy buttons; no squeezed text. */
.woocommerce-cart .wc-block-components-product-details__ewal_actions,
.woocommerce-checkout .wc-block-components-product-details__ewal_actions{
  display:block!important;margin-top:8px!important;padding-top:12px!important;border-top:1px solid #cbd5e1!important
}
.woocommerce-cart .wc-block-components-product-details__ewal_actions .wc-block-components-product-details__name,
.woocommerce-checkout .wc-block-components-product-details__ewal_actions .wc-block-components-product-details__name{display:none!important}
.ewal-cart-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin:0!important;width:100%!important}
.ewal-action{min-height:40px!important;padding:9px 12px!important;box-sizing:border-box!important;text-align:center!important;white-space:nowrap!important}
/* Give cart content breathing room around image, title, details and quantity. */
.woocommerce-cart .wc-block-cart-items__row{padding-top:24px!important;padding-bottom:24px!important}
.woocommerce-cart .wc-block-cart-item__product{padding-left:22px!important}
.woocommerce-cart .wc-block-cart-item__image{padding-top:4px!important;margin-right:4px!important}
.woocommerce-cart .wc-block-components-product-name{display:block!important;margin-bottom:10px!important;line-height:1.3!important}
.woocommerce-cart .wc-block-components-product-metadata{margin-top:12px!important}
.woocommerce-cart .wc-block-cart-item__quantity{margin-top:14px!important}
/* Checkout is narrow: keep the image useful and make the details full-width/readable. */
.woocommerce-checkout .wc-block-components-order-summary-item{padding:18px 0!important;align-items:flex-start!important}
.woocommerce-checkout .wc-block-components-order-summary-item__image{width:92px!important;min-width:92px!important;margin-right:14px!important;padding-top:3px!important}
.woocommerce-checkout .wc-block-components-order-summary-item__description{min-width:0!important;padding-left:0!important}
.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name{line-height:1.3!important;margin-bottom:8px!important}
.woocommerce-checkout ul.wc-block-components-product-details{width:100%!important;max-width:none!important;margin-top:14px!important;padding:14px!important}
.woocommerce-checkout ul.wc-block-components-product-details>li{grid-template-columns:minmax(92px,42%) minmax(0,1fr)!important;column-gap:10px!important;padding:7px 0!important}
.woocommerce-checkout .wc-block-components-product-details__name,
.woocommerce-checkout .wc-block-components-product-details__value{font-size:12px!important;line-height:1.35!important}
.woocommerce-checkout .ewal-cart-actions{grid-template-columns:1fr 1fr!important;gap:7px!important}
.woocommerce-checkout .ewal-action{font-size:11px!important;min-height:38px!important;padding:8px 7px!important;white-space:normal!important}
@media(max-width:700px){
 .woocommerce-cart .wc-block-cart-item__product{padding-left:10px!important}
 .woocommerce-cart ul.wc-block-components-product-details,
 .woocommerce-checkout ul.wc-block-components-product-details{padding:12px!important}
 .woocommerce-cart ul.wc-block-components-product-details>li,
 .woocommerce-checkout ul.wc-block-components-product-details>li{grid-template-columns:1fr!important;gap:3px!important;padding:7px 0!important}
 .ewal-cart-actions,.woocommerce-checkout .ewal-cart-actions{grid-template-columns:1fr!important}
}

/* v1.6 — compact two-column lens summary; remove theme-injected slash separators */
.woocommerce-cart ul.wc-block-components-product-details,
.woocommerce-checkout ul.wc-block-components-product-details{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:0 22px!important;
  padding:18px 20px!important;
}
/* Expressiwear/Woo Blocks may inject slash separators between metadata items. */
.woocommerce-cart ul.wc-block-components-product-details>li::before,
.woocommerce-cart ul.wc-block-components-product-details>li::after,
.woocommerce-checkout ul.wc-block-components-product-details>li::before,
.woocommerce-checkout ul.wc-block-components-product-details>li::after,
.woocommerce-cart .wc-block-components-product-details__name::before,
.woocommerce-cart .wc-block-components-product-details__name::after,
.woocommerce-cart .wc-block-components-product-details__value::before,
.woocommerce-cart .wc-block-components-product-details__value::after,
.woocommerce-checkout .wc-block-components-product-details__name::before,
.woocommerce-checkout .wc-block-components-product-details__name::after,
.woocommerce-checkout .wc-block-components-product-details__value::before,
.woocommerce-checkout .wc-block-components-product-details__value::after{
  content:none!important;
  display:none!important;
}
.woocommerce-cart ul.wc-block-components-product-details>li,
.woocommerce-checkout ul.wc-block-components-product-details>li{
  display:grid!important;
  grid-template-columns:minmax(105px,42%) minmax(0,1fr)!important;
  column-gap:12px!important;
  align-items:center!important;
  min-width:0!important;
  padding:10px 0!important;
  border-bottom:1px solid #e4e9ef!important;
}
.woocommerce-cart .wc-block-components-product-details__name,
.woocommerce-cart .wc-block-components-product-details__value,
.woocommerce-checkout .wc-block-components-product-details__name,
.woocommerce-checkout .wc-block-components-product-details__value{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  line-height:1.35!important;
}
/* Totals and management controls occupy the full panel width. */
.woocommerce-cart .wc-block-components-product-details__ewal_lens_total,
.woocommerce-cart .wc-block-components-product-details__ewal_grand_total,
.woocommerce-cart .wc-block-components-product-details__ewal_prescription,
.woocommerce-cart .wc-block-components-product-details__ewal_actions,
.woocommerce-checkout .wc-block-components-product-details__ewal_lens_total,
.woocommerce-checkout .wc-block-components-product-details__ewal_grand_total,
.woocommerce-checkout .wc-block-components-product-details__ewal_prescription,
.woocommerce-checkout .wc-block-components-product-details__ewal_actions{
  grid-column:1 / -1!important;
}
.woocommerce-cart .wc-block-components-product-details__ewal_lens_total,
.woocommerce-checkout .wc-block-components-product-details__ewal_lens_total{
  margin-top:4px!important;
  border-top:1px solid #cbd5e1!important;
}
.woocommerce-cart .wc-block-components-product-details__ewal_grand_total,
.woocommerce-checkout .wc-block-components-product-details__ewal_grand_total{
  margin:4px 0 0!important;
  padding:11px 12px!important;
}
.woocommerce-cart .wc-block-components-product-details__ewal_actions,
.woocommerce-checkout .wc-block-components-product-details__ewal_actions{
  margin-top:6px!important;
  padding-top:14px!important;
}
/* Checkout sidebar needs a denser version while retaining two columns. */
.woocommerce-checkout ul.wc-block-components-product-details{
  gap:0 14px!important;
  padding:14px!important;
}
.woocommerce-checkout ul.wc-block-components-product-details>li{
  grid-template-columns:1fr!important;
  gap:3px!important;
  align-content:start!important;
  padding:9px 0!important;
}
.woocommerce-checkout .wc-block-components-product-details__name{font-size:11px!important;color:#475569!important}
.woocommerce-checkout .wc-block-components-product-details__value{font-size:12px!important;font-weight:700!important;color:#0f172a!important}
.woocommerce-checkout .wc-block-components-product-details__ewal_lens_total,
.woocommerce-checkout .wc-block-components-product-details__ewal_grand_total,
.woocommerce-checkout .wc-block-components-product-details__ewal_prescription,
.woocommerce-checkout .wc-block-components-product-details__ewal_actions{grid-column:1 / -1!important}

@media(max-width:760px){
 .woocommerce-cart ul.wc-block-components-product-details,
 .woocommerce-checkout ul.wc-block-components-product-details{grid-template-columns:1fr!important;gap:0!important;padding:14px!important}
 .woocommerce-cart ul.wc-block-components-product-details>li,
 .woocommerce-checkout ul.wc-block-components-product-details>li{grid-template-columns:minmax(100px,38%) minmax(0,1fr)!important;gap:10px!important}
 .woocommerce-cart .wc-block-components-product-details__ewal_lens_total,
 .woocommerce-cart .wc-block-components-product-details__ewal_grand_total,
 .woocommerce-cart .wc-block-components-product-details__ewal_prescription,
 .woocommerce-cart .wc-block-components-product-details__ewal_actions,
 .woocommerce-checkout .wc-block-components-product-details__ewal_lens_total,
 .woocommerce-checkout .wc-block-components-product-details__ewal_grand_total,
 .woocommerce-checkout .wc-block-components-product-details__ewal_prescription,
 .woocommerce-checkout .wc-block-components-product-details__ewal_actions{grid-column:auto!important}
}

/* v1.7 — DOM-normalized WooCommerce Blocks layout. */
ul.wc-block-components-product-details.ewal-block-details{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:0 24px!important;
  width:100%!important;
  max-width:760px!important;
  margin:16px 0 10px!important;
  padding:18px 20px!important;
  box-sizing:border-box!important;
  border:1px solid #d9e3ef!important;
  border-radius:10px!important;
  background:#f8fbff!important;
}
ul.wc-block-components-product-details.ewal-block-details>li.ewal-detail-row{
  display:grid!important;
  grid-template-columns:minmax(105px,40%) minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  margin:0!important;
  padding:10px 0!important;
  min-width:0!important;
  border-bottom:1px solid #e5eaf0!important;
}
ul.wc-block-components-product-details.ewal-block-details>li.ewal-detail-wide{grid-column:1/-1!important}
ul.wc-block-components-product-details.ewal-block-details>li.ewal-detail-grand{
  margin-top:2px!important;padding:12px!important;border:0!important;border-radius:7px!important;background:#edf4fc!important
}
ul.wc-block-components-product-details.ewal-block-details>li.ewal-detail-manage{display:block!important;padding-top:14px!important;border-bottom:0!important}
ul.wc-block-components-product-details.ewal-block-details .wc-block-components-product-details__name,
ul.wc-block-components-product-details.ewal-block-details .wc-block-components-product-details__value{
  display:block!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;line-height:1.4!important;word-break:normal!important;overflow-wrap:anywhere!important
}
ul.wc-block-components-product-details.ewal-block-details .wc-block-components-product-details__name{font-weight:800!important;color:#102b54!important}
ul.wc-block-components-product-details.ewal-block-details>li.ewal-detail-grand .wc-block-components-product-details__name,
ul.wc-block-components-product-details.ewal-block-details>li.ewal-detail-grand .wc-block-components-product-details__value{font-weight:900!important}
/* Checkout sidebar: still two columns of options, each option internally stacks label/value. */
.wc-block-checkout__sidebar ul.wc-block-components-product-details.ewal-block-details,
.wc-block-components-checkout-order-summary ul.wc-block-components-product-details.ewal-block-details{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 12px!important;padding:12px!important;margin-top:12px!important
}
.wc-block-checkout__sidebar ul.wc-block-components-product-details.ewal-block-details>li.ewal-detail-row,
.wc-block-components-checkout-order-summary ul.wc-block-components-product-details.ewal-block-details>li.ewal-detail-row{
  grid-template-columns:1fr!important;gap:2px!important;padding:8px 0!important;align-content:start!important
}
.wc-block-checkout__sidebar ul.wc-block-components-product-details.ewal-block-details>li.ewal-detail-wide,
.wc-block-components-checkout-order-summary ul.wc-block-components-product-details.ewal-block-details>li.ewal-detail-wide{grid-column:1/-1!important}
.wc-block-checkout__sidebar ul.wc-block-components-product-details.ewal-block-details .wc-block-components-product-details__name,
.wc-block-components-checkout-order-summary ul.wc-block-components-product-details.ewal-block-details .wc-block-components-product-details__name{font-size:11px!important}
.wc-block-checkout__sidebar ul.wc-block-components-product-details.ewal-block-details .wc-block-components-product-details__value,
.wc-block-components-checkout-order-summary ul.wc-block-components-product-details.ewal-block-details .wc-block-components-product-details__value{font-size:12px!important}
@media(max-width:760px){
 ul.wc-block-components-product-details.ewal-block-details{grid-template-columns:1fr!important;gap:0!important;padding:14px!important}
 ul.wc-block-components-product-details.ewal-block-details>li.ewal-detail-row{grid-column:1!important;grid-template-columns:minmax(100px,38%) minmax(0,1fr)!important}
}

/* ===== v1.8 WooCommerce Blocks lens summary ===== */
.wc-block-components-product-metadata .ewal-original-metadata{display:none!important}
.ewal-block-summary{margin:14px 0 8px!important;border:1px solid #d9e2ef!important;border-radius:10px!important;background:#f8fbff!important;overflow:hidden!important;color:#14233b!important;font-size:14px!important;line-height:1.35!important;max-width:100%!important;box-sizing:border-box!important}
.ewal-summary-title{padding:11px 14px!important;background:#edf5ff!important;border-bottom:1px solid #d9e2ef!important;font-weight:700!important;font-size:15px!important;color:#0b2a55!important}
.ewal-summary-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0!important}
.ewal-summary-row{display:grid!important;grid-template-columns:minmax(105px,.8fr) minmax(0,1.35fr)!important;align-items:center!important;column-gap:10px!important;min-height:46px!important;padding:9px 13px!important;border-bottom:1px solid #e3e9f1!important;box-sizing:border-box!important;background:#fff!important}
.ewal-summary-row:nth-child(odd){border-right:1px solid #e3e9f1!important}
.ewal-summary-label{font-weight:700!important;color:#182b49!important;min-width:0!important}
.ewal-summary-value{min-width:0!important;color:#172033!important;overflow-wrap:anywhere!important;word-break:normal!important}
.ewal-summary-value a{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-decoration:none!important}
.ewal-summary-lens-package,.ewal-summary-frame-lenses,.ewal-summary-prescription,.ewal-summary-manage{grid-column:1/-1!important;border-right:0!important}
.ewal-summary-lens-package,.ewal-summary-frame-lenses{background:#f4f8fd!important}
.ewal-summary-frame-lenses{font-weight:700!important;background:#eaf3ff!important}
.ewal-summary-prescription{background:#fff!important}
.ewal-summary-manage{padding-top:12px!important;padding-bottom:12px!important}
.ewal-summary-manage .ewal-summary-value{overflow:visible!important}
.ewal-summary-manage .ewal-cart-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
.ewal-summary-manage .ewal-action{min-height:38px!important;padding:8px 10px!important;border:1px solid #9bb9df!important;border-radius:7px!important;background:#fff!important;color:#123b70!important;font-weight:700!important;font-size:13px!important;white-space:nowrap!important}
.ewal-summary-manage .ewal-remove-lenses,.ewal-summary-manage .ewal-remove-frame{border-color:#e6a4a4!important;color:#a71919!important;background:#fffafa!important}

/* Checkout order-summary is narrow: keep label and value as two clean columns. */
.wc-block-checkout .ewal-block-summary,.wc-block-components-order-summary .ewal-block-summary{margin-top:10px!important;font-size:12px!important}
.wc-block-checkout .ewal-summary-title,.wc-block-components-order-summary .ewal-summary-title{padding:9px 10px!important;font-size:13px!important}
.wc-block-checkout .ewal-summary-grid,.wc-block-components-order-summary .ewal-summary-grid{grid-template-columns:1fr!important}
.wc-block-checkout .ewal-summary-row,.wc-block-components-order-summary .ewal-summary-row{grid-column:auto!important;grid-template-columns:minmax(82px,.85fr) minmax(0,1.15fr)!important;min-height:0!important;padding:7px 9px!important;border-right:0!important;column-gap:8px!important}
.wc-block-checkout .ewal-summary-manage .ewal-cart-actions,.wc-block-components-order-summary .ewal-summary-manage .ewal-cart-actions{grid-template-columns:1fr 1fr!important}
.wc-block-checkout .ewal-summary-manage,.wc-block-components-order-summary .ewal-summary-manage{grid-template-columns:1fr!important}
.wc-block-checkout .ewal-summary-manage .ewal-summary-label,.wc-block-components-order-summary .ewal-summary-manage .ewal-summary-label{margin-bottom:7px!important}

@media(max-width:700px){
 .ewal-summary-grid{grid-template-columns:1fr!important}
 .ewal-summary-row{grid-column:auto!important;border-right:0!important;grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr)!important;padding:8px 10px!important}
 .ewal-summary-manage .ewal-cart-actions{grid-template-columns:1fr 1fr!important}
}

/* ===== v1.9 definitive responsive Lens Configuration ===== */
/* Never split values character-by-character. */
.ewal-block-summary,.ewal-block-summary *{box-sizing:border-box!important;word-break:normal!important;overflow-wrap:normal!important;min-width:0!important}
.ewal-block-summary{width:100%!important;max-width:none!important;margin:18px 0 10px!important;border-radius:12px!important}
.ewal-summary-title{padding:13px 16px!important;font-size:16px!important}

/* Desktop/laptop Cart: three compact columns. Each option stacks label/value. */
.woocommerce-cart .ewal-summary-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important}
.woocommerce-cart .ewal-summary-row{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:4px!important;grid-column:auto!important;min-height:76px!important;padding:13px 15px!important;border-right:1px solid #e3e9f1!important;border-bottom:1px solid #e3e9f1!important;background:#fff!important}
.woocommerce-cart .ewal-summary-row:nth-child(3n){border-right:0!important}
.woocommerce-cart .ewal-summary-label{font-size:12px!important;line-height:1.25!important;color:#526174!important}
.woocommerce-cart .ewal-summary-value{font-size:14px!important;line-height:1.4!important;color:#13233a!important;white-space:normal!important}
.woocommerce-cart .ewal-summary-lens-package,.woocommerce-cart .ewal-summary-frame-lenses{grid-column:auto!important;background:#f1f6fc!important}
.woocommerce-cart .ewal-summary-frame-lenses{background:#e7f1fd!important}
.woocommerce-cart .ewal-summary-prescription{grid-column:1 / span 2!important;border-right:1px solid #e3e9f1!important}
.woocommerce-cart .ewal-summary-manage{grid-column:1/-1!important;display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;align-items:center!important;min-height:70px!important;padding:12px 15px!important;border-right:0!important}
.woocommerce-cart .ewal-summary-manage .ewal-cart-actions{display:grid!important;grid-template-columns:repeat(4,minmax(125px,1fr))!important;gap:9px!important;width:100%!important}
.woocommerce-cart .ewal-summary-manage .ewal-action{width:100%!important;min-width:0!important;min-height:40px!important;padding:9px 8px!important;white-space:normal!important;line-height:1.2!important;text-align:center!important}

/* Checkout sidebar is intentionally one column: it is too narrow for 2/3 columns. */
.woocommerce-checkout .ewal-block-summary,.wc-block-checkout .ewal-block-summary,.wc-block-components-order-summary .ewal-block-summary{width:100%!important;max-width:none!important}
.woocommerce-checkout .ewal-summary-grid,.wc-block-checkout .ewal-summary-grid,.wc-block-components-order-summary .ewal-summary-grid{display:grid!important;grid-template-columns:1fr!important}
.woocommerce-checkout .ewal-summary-row,.wc-block-checkout .ewal-summary-row,.wc-block-components-order-summary .ewal-summary-row{display:grid!important;grid-template-columns:minmax(88px,40%) minmax(0,1fr)!important;grid-column:auto!important;gap:8px!important;align-items:start!important;min-height:0!important;padding:9px 10px!important;border-right:0!important;border-bottom:1px solid #e3e9f1!important}
.woocommerce-checkout .ewal-summary-label,.wc-block-checkout .ewal-summary-label,.wc-block-components-order-summary .ewal-summary-label{font-size:11px!important;line-height:1.3!important}
.woocommerce-checkout .ewal-summary-value,.wc-block-checkout .ewal-summary-value,.wc-block-components-order-summary .ewal-summary-value{font-size:12px!important;line-height:1.35!important;white-space:normal!important}
.woocommerce-checkout .ewal-summary-manage,.wc-block-checkout .ewal-summary-manage,.wc-block-components-order-summary .ewal-summary-manage{display:block!important;padding:10px!important}
.woocommerce-checkout .ewal-summary-manage .ewal-summary-label,.wc-block-checkout .ewal-summary-manage .ewal-summary-label,.wc-block-components-order-summary .ewal-summary-manage .ewal-summary-label{margin:0 0 8px!important}
.woocommerce-checkout .ewal-summary-manage .ewal-cart-actions,.wc-block-checkout .ewal-summary-manage .ewal-cart-actions,.wc-block-components-order-summary .ewal-summary-manage .ewal-cart-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:100%!important}
.woocommerce-checkout .ewal-summary-manage .ewal-action,.wc-block-checkout .ewal-summary-manage .ewal-action,.wc-block-components-order-summary .ewal-summary-manage .ewal-action{width:100%!important;min-width:0!important;padding:8px 6px!important;font-size:11px!important;white-space:normal!important;line-height:1.2!important}

/* Tablet Cart: two columns. */
@media (max-width:1024px) and (min-width:701px){
 .woocommerce-cart .ewal-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .woocommerce-cart .ewal-summary-row{border-right:1px solid #e3e9f1!important}
 .woocommerce-cart .ewal-summary-row:nth-child(2n){border-right:0!important}
 .woocommerce-cart .ewal-summary-prescription{grid-column:1/-1!important;border-right:0!important}
 .woocommerce-cart .ewal-summary-manage .ewal-cart-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Mobile Cart: make the product wrap full-width, then one-column summary. */
@media (max-width:700px){
 .woocommerce-cart .wc-block-cart-item__wrap{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;column-gap:12px!important;align-items:start!important;width:100%!important}
 .woocommerce-cart .wc-block-cart-item__image{grid-column:1!important;grid-row:1!important;width:72px!important;max-width:72px!important;margin:0!important}
 .woocommerce-cart .wc-block-cart-item__product{min-width:0!important}
 .woocommerce-cart .wc-block-cart-item__wrap>.wc-block-cart-item__product,.woocommerce-cart .wc-block-cart-item__wrap>.wc-block-components-product-metadata{min-width:0!important}
 .woocommerce-cart .ewal-block-summary{grid-column:1/-1!important;width:100%!important;margin:14px 0 8px!important}
 .woocommerce-cart .ewal-summary-grid{grid-template-columns:1fr!important}
 .woocommerce-cart .ewal-summary-row,.woocommerce-cart .ewal-summary-prescription{display:grid!important;grid-template-columns:minmax(105px,38%) minmax(0,1fr)!important;grid-column:1!important;gap:10px!important;min-height:0!important;padding:10px 12px!important;border-right:0!important}
 .woocommerce-cart .ewal-summary-label{font-size:12px!important}
 .woocommerce-cart .ewal-summary-value{font-size:13px!important}
 .woocommerce-cart .ewal-summary-manage{grid-column:1!important;display:block!important;padding:12px!important}
 .woocommerce-cart .ewal-summary-manage .ewal-summary-label{margin-bottom:9px!important}
 .woocommerce-cart .ewal-summary-manage .ewal-cart-actions{grid-template-columns:1fr 1fr!important;gap:8px!important}
 .woocommerce-cart .ewal-summary-manage .ewal-action{min-width:0!important;font-size:12px!important;padding:9px 6px!important;white-space:normal!important}
}
@media (max-width:390px){
 .woocommerce-cart .ewal-summary-row,.woocommerce-cart .ewal-summary-prescription{grid-template-columns:1fr!important;gap:3px!important}
 .woocommerce-cart .ewal-summary-manage .ewal-cart-actions{grid-template-columns:1fr!important}
}

/* ===== v2.0 responsive cart/checkout shell fixes ===== */
/* Desktop: management area is deliberately two columns, not four cramped buttons. */
.woocommerce-cart .ewal-summary-manage .ewal-cart-actions{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  max-width:560px!important;
  justify-self:end!important;
}
.woocommerce-cart .ewal-summary-prescription{grid-column:1/-1!important;border-right:0!important}

@media (max-width:700px){
  /* Woo Blocks uses a table layout. Break the row out of table sizing so the
     product title and lens card are not squeezed into the old product column. */
  .woocommerce-cart table.wc-block-cart-items,
  .woocommerce-cart table.wc-block-cart-items tbody{display:block!important;width:100%!important}
  .woocommerce-cart tr.wc-block-cart-items__row{
    display:grid!important;
    grid-template-columns:78px minmax(0,1fr)!important;
    gap:0 12px!important;
    width:100%!important;
    position:relative!important;
    padding:18px 12px 14px!important;
    box-sizing:border-box!important;
  }
  .woocommerce-cart tr.wc-block-cart-items__row>td{width:auto!important;max-width:none!important;min-width:0!important;padding:0!important;border:0!important}
  .woocommerce-cart td.wc-block-cart-item__image{grid-column:1!important;grid-row:1!important;width:78px!important;max-width:78px!important;padding-top:4px!important}
  .woocommerce-cart td.wc-block-cart-item__image img{width:78px!important;height:78px!important;object-fit:contain!important}
  .woocommerce-cart td.wc-block-cart-item__product{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;padding:0 0 0 0!important}
  .woocommerce-cart td.wc-block-cart-item__total{position:absolute!important;right:12px!important;top:18px!important;width:auto!important;z-index:2!important}
  .woocommerce-cart .wc-block-components-product-name{display:block!important;width:100%!important;max-width:none!important;padding-right:68px!important;font-size:18px!important;line-height:1.28!important;word-break:normal!important;overflow-wrap:break-word!important}
  .woocommerce-cart .wc-block-components-product-metadata{width:100%!important;max-width:none!important}
  .woocommerce-cart .wc-block-cart-item__wrap{display:block!important;width:100%!important;max-width:none!important;min-width:0!important}
  .woocommerce-cart .ewal-block-summary{width:calc(100% + 90px)!important;max-width:none!important;margin-left:-90px!important;margin-top:16px!important}
  .woocommerce-cart .ewal-summary-grid{grid-template-columns:1fr!important}
  .woocommerce-cart .ewal-summary-row,.woocommerce-cart .ewal-summary-prescription{
    display:grid!important;grid-template-columns:110px minmax(0,1fr)!important;gap:10px!important;
    padding:10px 12px!important;min-height:0!important
  }
  .woocommerce-cart .ewal-summary-manage{display:block!important;padding:12px!important}
  .woocommerce-cart .ewal-summary-manage .ewal-cart-actions{grid-template-columns:1fr 1fr!important;max-width:none!important;width:100%!important;gap:8px!important}
  .woocommerce-cart .wc-block-cart-item__quantity{margin-top:12px!important}
}
@media (max-width:390px){
  .woocommerce-cart .ewal-summary-row,.woocommerce-cart .ewal-summary-prescription{grid-template-columns:92px minmax(0,1fr)!important;gap:8px!important}
  .woocommerce-cart .ewal-summary-manage .ewal-cart-actions{grid-template-columns:1fr 1fr!important}
}

/* Checkout mobile: allow the order item description to use the available width,
   then let the lens card span beneath image/name/price. */
@media (max-width:700px){
 .woocommerce-checkout .wc-block-components-order-summary-item,
 .wc-block-checkout .wc-block-components-order-summary-item{
   display:grid!important;grid-template-columns:64px minmax(0,1fr) auto!important;
   column-gap:10px!important;align-items:start!important;width:100%!important;min-width:0!important
 }
 .woocommerce-checkout .wc-block-components-order-summary-item__image,
 .wc-block-checkout .wc-block-components-order-summary-item__image{grid-column:1!important;width:64px!important;max-width:64px!important}
 .woocommerce-checkout .wc-block-components-order-summary-item__description,
 .wc-block-checkout .wc-block-components-order-summary-item__description{grid-column:2!important;min-width:0!important;width:100%!important}
 .woocommerce-checkout .wc-block-components-order-summary-item__total-price,
 .wc-block-checkout .wc-block-components-order-summary-item__total-price{grid-column:3!important;white-space:nowrap!important}
 .woocommerce-checkout .wc-block-components-product-name,
 .wc-block-checkout .wc-block-components-product-name{font-size:15px!important;line-height:1.25!important;word-break:normal!important;overflow-wrap:break-word!important}
 .woocommerce-checkout .ewal-block-summary,
 .wc-block-checkout .ewal-block-summary{width:calc(100% + 74px)!important;max-width:none!important;margin-left:-74px!important;margin-top:12px!important}
 .woocommerce-checkout .ewal-summary-row,.wc-block-checkout .ewal-summary-row{grid-template-columns:100px minmax(0,1fr)!important}
 .woocommerce-checkout .ewal-summary-manage .ewal-cart-actions,.wc-block-checkout .ewal-summary-manage .ewal-cart-actions{grid-template-columns:1fr 1fr!important}
}


/* ===== v2.1 measured mobile DOM fix ===== */
@media (max-width:700px){
  /* CART: summary is now a direct child of the measured 326px cart row. */
  .woocommerce-cart tr.wc-block-cart-items__row > .ewal-block-summary{
    grid-column:1 / -1!important;
    grid-row:2!important;
    width:100%!important;
    max-width:none!important;
    margin:14px 0 8px!important;
    margin-left:0!important;
    align-self:stretch!important;
  }
  .woocommerce-cart tr.wc-block-cart-items__row{
    grid-template-columns:80px minmax(0,1fr)!important;
  }
  .woocommerce-cart tr.wc-block-cart-items__row > .ewal-block-summary .ewal-summary-grid{
    grid-template-columns:1fr!important;
    width:100%!important;
  }
  .woocommerce-cart tr.wc-block-cart-items__row > .ewal-block-summary .ewal-summary-row,
  .woocommerce-cart tr.wc-block-cart-items__row > .ewal-block-summary .ewal-summary-prescription{
    grid-template-columns:minmax(96px,36%) minmax(0,1fr)!important;
    width:100%!important;
  }
  .woocommerce-cart tr.wc-block-cart-items__row > .ewal-block-summary .ewal-summary-manage .ewal-cart-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
    max-width:none!important;
  }
  .woocommerce-cart tr.wc-block-cart-items__row > .ewal-block-summary .ewal-action{
    width:100%!important;min-width:0!important;white-space:normal!important;
  }

  /* CHECKOUT: use two columns for image + description; price floats at top right.
     Summary is a direct child and spans full order-item width below them. */
  .woocommerce-checkout .wc-block-components-order-summary-item,
  .wc-block-checkout .wc-block-components-order-summary-item{
    display:grid!important;
    grid-template-columns:64px minmax(0,1fr)!important;
    gap:10px!important;
    position:relative!important;
    width:100%!important;
    min-width:0!important;
  }
  .woocommerce-checkout .wc-block-components-order-summary-item__image,
  .wc-block-checkout .wc-block-components-order-summary-item__image{grid-column:1!important;grid-row:1!important}
  .woocommerce-checkout .wc-block-components-order-summary-item__description,
  .wc-block-checkout .wc-block-components-order-summary-item__description{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;padding-right:54px!important;
  }
  .woocommerce-checkout .wc-block-components-order-summary-item__total-price,
  .wc-block-checkout .wc-block-components-order-summary-item__total-price{
    position:absolute!important;right:0!important;top:0!important;width:auto!important;white-space:nowrap!important;
  }
  .woocommerce-checkout .wc-block-components-order-summary-item > .ewal-block-summary,
  .wc-block-checkout .wc-block-components-order-summary-item > .ewal-block-summary{
    grid-column:1 / -1!important;
    grid-row:2!important;
    width:100%!important;
    max-width:none!important;
    margin:12px 0 0!important;
    margin-left:0!important;
  }
  .woocommerce-checkout .wc-block-components-order-summary-item > .ewal-block-summary .ewal-summary-grid,
  .wc-block-checkout .wc-block-components-order-summary-item > .ewal-block-summary .ewal-summary-grid{grid-template-columns:1fr!important}
  .woocommerce-checkout .wc-block-components-order-summary-item > .ewal-block-summary .ewal-summary-row,
  .wc-block-checkout .wc-block-components-order-summary-item > .ewal-block-summary .ewal-summary-row{
    grid-template-columns:minmax(92px,36%) minmax(0,1fr)!important;gap:8px!important;width:100%!important;
  }
  .woocommerce-checkout .wc-block-components-order-summary-item > .ewal-block-summary .ewal-summary-manage .ewal-cart-actions,
  .wc-block-checkout .wc-block-components-order-summary-item > .ewal-block-summary .ewal-summary-manage .ewal-cart-actions{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important;
  }
}
