/* Only the extra saving line is styled. Native Woo/Flatsome prices stay untouched. */
.egp2-saving{display:block!important;clear:both;flex-basis:100%;width:100%;margin-top:5px;font-size:14px;font-weight:500;line-height:1.45;white-space:normal}
.egp2-saving[data-egp2-price-context="single"]{font-size:15px;margin-top:6px}
.egp2-saving,.egp2-saving *{color:#d63638!important}
/* The line stays in server-rendered price HTML. Wrap flex layouts without
   changing the theme's display mode or the order/styles of its del/ins prices. */
.price:has(> .egp2-saving):not(.sticky-add-to-cart .price){flex-wrap:wrap!important;row-gap:0}
.egp2-saving{float:none!important;order:999999;flex:0 0 100%;grid-column:1 / -1;margin-top:4px!important;margin-bottom:0!important}
/* Flatsome's sticky bar only shows its native price. Keep the hidden saving
   marker in the DOM so existing format/price updates still reach this price.
   CSS applies before first paint and also covers clones and AJAX replacements. */
.sticky-add-to-cart .egp2-saving{display:none!important}
/* Self-contained component cards inspired by the supplied reference, no theme form overrides. */
.egp2-contents{margin:0 0 18px;padding:12px;border:1px solid #e5e5e5;border-radius:10px;background:#f7f7f7;text-align:left;--egp2-accent:var(--fs-color-primary,var(--primary-color,#ff6600));--egp2-ink:#292929;--egp2-border:#e5e5e5}
.egp2-contents,.egp2-contents *{box-sizing:border-box}
.egp2-contents h3{font-size:16px;line-height:1.35;margin:0 0 10px;font-weight:600;color:var(--egp2-ink)}
.egp2-contents .egp2-components{display:grid;gap:9px;list-style:none;margin:0;padding:0}
.egp2-contents .egp2-component{display:block;min-width:0;border:1px solid var(--egp2-border);border-radius:8px;background:#fff;padding:10px;margin:0;list-style:none;transition:border-color .15s ease}
.egp2-contents .egp2-component:focus-within{border-color:var(--egp2-accent)}
.egp2-contents .egp2-component-head{display:grid;grid-template-columns:max-content 36px minmax(0,1fr);align-items:center;gap:8px;min-width:0}
.egp2-contents .egp2-image{display:flex;align-items:center;justify-content:center;width:36px;height:40px}
.egp2-contents .egp2-image img{width:32px;height:38px;object-fit:contain;display:block;margin:0;border:0;border-radius:0}
.egp2-contents .egp2-name{display:block;min-width:0;overflow-wrap:anywhere;color:var(--egp2-ink)!important;font-weight:600;font-size:13px;line-height:1.4;text-decoration:none}
.egp2-contents .egp2-name:hover{color:var(--egp2-accent)!important;text-decoration:underline}
.egp2-contents .egp2-quantity{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-width:24px;min-height:24px;max-width:none;margin:0;padding:0;border:0;border-radius:50%;background:#ff6600;color:#fff;font-size:12px;font-weight:700;line-height:1;white-space:nowrap;text-align:center;flex-shrink:0}
.egp2-contents .egp2-quantity-lg{width:32px;height:32px;min-width:32px;min-height:32px;font-size:11px}
.egp2-contents .egp2-quantity-xl{width:44px;height:44px;min-width:44px;min-height:44px;font-size:10px}
.egp2-contents .egp2-format{min-width:0;margin-top:8px}
.egp2-contents .egp2-format-label{display:block;margin:0 0 4px;padding:0;font-size:11px;font-weight:600;line-height:1.3;color:#666}
.egp2-contents .egp2-format select{display:block;width:100%;height:40px;min-height:40px;max-width:100%;margin:0;padding:0 28px 0 10px;border:1px solid #dcdcdc;border-radius:6px;background-color:#fff;font-size:14px;color:var(--egp2-ink);box-shadow:none}
.egp2-contents .egp2-format select:focus{border-color:var(--egp2-accent);outline:2px solid var(--egp2-accent);outline-offset:2px}
.egp2-contents .egp2-fixed-format{display:inline-block;max-width:100%;padding:4px 8px;border:1px solid var(--egp2-border);border-radius:5px;background:#fafafa;font-size:12px;color:var(--egp2-ink);line-height:1.4;overflow-wrap:anywhere}
.egp2-status{font-size:12px;line-height:1.4;color:#666;margin:9px 0 0}
.egp2-contents .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Plain names and included discounted prices, without separate component cart rows. */
.egp2-cart-components{display:block;margin:5px 0 0!important;padding:0!important;list-style:none!important;font-size:12px;font-weight:400;line-height:1.5;color:#666}
.egp2-cart-components li{display:block;margin:0!important;padding:0!important;list-style:none!important}
.egp2-cart-components .amount{font-size:inherit!important;font-weight:inherit!important;color:inherit!important}
@media(max-width:380px){.egp2-contents{padding:10px}.egp2-contents .egp2-component{padding:9px}.egp2-contents .egp2-component-head{grid-template-columns:max-content 30px minmax(0,1fr);gap:6px}.egp2-contents .egp2-image{width:30px;height:36px}.egp2-contents .egp2-image img{width:28px;height:34px}.egp2-contents .egp2-name{font-size:12px}}
@media(prefers-reduced-motion:reduce){.egp2-contents .egp2-component{transition:none}}
