/* Scoped exclusively to products explicitly using the FEG Offer Style. */
.single-product .lgfeg-generated{direction:rtl;display:grid;gap:11px;background:var(--lgfeg-panel-bg,#f0f6fd);padding:8px;border-radius:16px;margin:8px 0 18px}
.single-product .lgfeg-generated .feg-offers-heading{text-align:center;padding:3px 0 9px;color:#082e56}
.single-product .lgfeg-generated .feg-offers-heading small{font-size:10px;letter-spacing:1.3px;color:#255c8e}
.single-product .lgfeg-generated .feg-offers-heading h3{font-size:22px;font-weight:900;margin:5px 0 3px;color:#082e56}
.single-product .lgfeg-generated .feg-offers-heading p{font-size:12px;color:#6b7b94;margin:0}
.single-product .lgfeg-generated .feg-photo-card{cursor:pointer;position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-height:138px;padding:15px 11px;background:var(--lgfeg-card-bg,#fff);border:1px solid var(--lgfeg-card-border,#cfdff0);border-radius:15px;gap:8px;box-sizing:border-box;color:var(--lgfeg-text,#102f54)}
.single-product .lgfeg-generated .feg-photo-card.selected{border:2px solid var(--lgfeg-accent,#fa6819);background:var(--lgfeg-card-bg,#eaf3ff)}
.single-product .lgfeg-generated .feg-photo-card>input{position:absolute;opacity:0;width:1px;height:1px}
.single-product .lgfeg-generated .feg-card-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:1;gap:6px;text-align:right;min-width:0;padding-right:24px}
.single-product .lgfeg-generated .feg-card-title{font-weight:850;font-size:17px;color:var(--lgfeg-text,#0b315a)}
.single-product .lgfeg-generated .feg-card-price{font-size:clamp(19px,5.7vw,25px);font-weight:900;white-space:nowrap;line-height:1.25;color:var(--lgfeg-text,#0b315a)}
.single-product .lgfeg-generated .feg-card-saving{font-size:12px;font-weight:800;background:#e1f5e8;color:#087340;padding:3px 8px;border-radius:6px}
.single-product .lgfeg-generated .feg-bottles{width:39%;height:112px;display:flex;direction:ltr;align-items:stretch;justify-content:center;gap:0;flex-shrink:0}
.single-product .lgfeg-generated .feg-bottle{display:block;flex:1;min-width:0}
.single-product .lgfeg-generated .feg-bottle img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px #30405035)}
.single-product .lgfeg-generated .feg-card-radio{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:20px;height:20px;border:1px solid #aac0d4;border-radius:50%;background:white}
.single-product .lgfeg-generated .selected .feg-card-radio{border:5px solid var(--lgfeg-accent,#fa6819)}
.single-product .lgfeg-generated .feg-value-badge{position:absolute;top:-11px;right:16px;background:var(--lgfeg-badge-bg,#bf491d);color:#fff;padding:5px 14px;font-size:12px;font-weight:900;border-radius:8px 8px 0 8px;z-index:2}
/* Custom colors on the original theme-authored FEG cards. Unset values do nothing. */
.single-product .feg-photo-offers[style*="--lgfeg-panel-bg"]{background:var(--lgfeg-panel-bg)!important}
.single-product .feg-photo-offers[style*="--lgfeg-text"] .feg-card-title,.single-product .feg-photo-offers[style*="--lgfeg-text"] .feg-card-price{color:var(--lgfeg-text)!important}
.single-product .feg-photo-offers[style*="--lgfeg-accent"] .feg-photo-card.selected{border-color:var(--lgfeg-accent)!important}
.single-product .feg-photo-offers[style*="--lgfeg-badge-bg"] .feg-value-badge{background:var(--lgfeg-badge-bg)!important}
.single-product .feg-photo-offers .feg-photo-card[style*="--lgfeg-card-bg"]{background:var(--lgfeg-card-bg)!important}
.single-product .feg-photo-offers .feg-photo-card[style*="--lgfeg-card-border"]{border-color:var(--lgfeg-card-border)!important}

/* User-prepared bundle pictures: one untouched image per offer, no legacy bottle clipping/duplication. */
.single-product .feg-photo-offers .feg-bottles.lgfeg-prepared-visual{
  display:flex!important;position:relative!important;align-items:center!important;justify-content:center!important;
  flex:0 0 126px!important;width:126px!important;max-width:100%!important;height:130px!important;
  transform:none!important;overflow:visible!important;filter:none!important;pointer-events:none;
}
.single-product .feg-photo-offers .feg-bottles.lgfeg-prepared-visual .lgfeg-prepared-img{
  display:block!important;position:static!important;left:auto!important;top:auto!important;
  width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;
  max-height:100%!important;object-fit:contain!important;object-position:center!important;
  clip-path:none!important;transform:none!important;filter:none!important;
  border:0!important;border-radius:0!important;margin:0!important;padding:0!important;
}
@media (max-width:480px){
  .single-product .feg-photo-offers .feg-bottles.lgfeg-prepared-visual{
    flex-basis:100px!important;width:100px!important;height:116px!important;transform:none!important;
  }
}
@media (max-width:350px){
  .single-product .feg-photo-offers .feg-bottles.lgfeg-prepared-visual{
    flex-basis:75px!important;width:75px!important;height:98px!important;transform:none!important;
  }
}
/* The second offer display mirrors the main cards. Use the prepared image there too. */
.single-product .feg-description-offers .feg-bottles.lgfeg-prepared-visual{
  flex-basis:75px!important;width:75px!important;height:96px!important;transform:none!important;
}

/* v3.0.4: Saved FEG design colors override the original FEG 587 theme rules.
 * Keep original theme colors when the setting is untouched. All selectors are
 * restricted to the FEG card container; no WooCommerce checkout modifications.
 */
body.single-product .lg-cod-form .feg-photo-offers[style*="--lgfeg-panel-bg"] {
  background: var(--lgfeg-panel-bg) !important;
}
body.single-product .lg-cod-form .feg-photo-offers .feg-photo-card[style*="--lgfeg-card-bg"] {
  background: var(--lgfeg-card-bg) !important;
}
body.single-product .lg-cod-form .feg-photo-offers .feg-photo-card:not(.selected)[style*="--lgfeg-card-border"] {
  border-color: var(--lgfeg-card-border) !important;
}
body.single-product .lg-cod-form .feg-photo-offers[style*="--lgfeg-accent"] .feg-photo-card.selected {
  border-color: var(--lgfeg-accent) !important;
}
body.single-product .lg-cod-form .feg-photo-offers[style*="--lgfeg-text"] .feg-card-title,
body.single-product .lg-cod-form .feg-photo-offers[style*="--lgfeg-text"] .feg-card-price {
  color: var(--lgfeg-text) !important;
}
