.wcfp-product-features{
  --wcfp-accent:#111827;--wcfp-surface:#fff;--wcfp-text:#111827;--wcfp-muted:#667085;--wcfp-border:#e4e7ec;--wcfp-radius:14px;--wcfp-swatch-size:46px;--wcfp-gap:10px;
  width:100%;margin:20px 0 22px;color:var(--wcfp-text);font-family:inherit;line-height:1.5;box-sizing:border-box;isolation:isolate
}
.wcfp-product-features *{box-sizing:border-box}
.wcfp-group{position:relative;margin:0 0 22px}.wcfp-group:last-of-type{margin-bottom:12px}
.wcfp-group-head{display:flex;align-items:center;gap:10px;min-height:28px;margin-bottom:12px}
.wcfp-group-title{font:inherit;font-size:15px;font-weight:750;color:var(--wcfp-text);letter-spacing:-.01em}
.wcfp-selected-label{display:inline-flex;align-items:center;min-height:25px;padding:3px 9px;border-radius:999px;background:#f2f4f7;color:var(--wcfp-muted);font-size:12px;font-weight:600;opacity:0;transform:translateY(2px);transition:.18s ease}
.wcfp-selected-label:not(:empty){opacity:1;transform:none}.wcfp-selected-label:not(:empty):before{content:"";width:5px;height:5px;border-radius:50%;background:var(--wcfp-accent);margin-left:6px}
.wcfp-options{display:flex;align-items:stretch;flex-wrap:wrap;gap:var(--wcfp-gap)}
.wcfp-option{font:inherit;color:inherit;outline:none;-webkit-tap-highlight-color:transparent;position:relative}
.wcfp-group[data-selectable="1"] .wcfp-option{cursor:pointer}

/* Color swatches */
.wcfp-type-swatch .wcfp-options{align-items:flex-start;overflow:visible}
.wcfp-type-swatch .wcfp-option{appearance:none;-webkit-appearance:none;border:0;background:transparent;padding:0;min-width:var(--wcfp-swatch-size);display:inline-flex;flex-direction:column;align-items:center;gap:7px;overflow:visible}
.wcfp-swatch-shell{width:var(--wcfp-swatch-size);height:var(--wcfp-swatch-size);display:grid;place-items:center;border-radius:50%;background:var(--wcfp-surface);border:1px solid var(--wcfp-border);box-shadow:0 1px 2px rgba(16,24,40,.05);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.wcfp-swatch{position:relative;width:calc(var(--wcfp-swatch-size) - 12px);height:calc(var(--wcfp-swatch-size) - 12px);display:grid;place-items:center;border-radius:50%;background:var(--wcfp-swatch);box-shadow:inset 0 0 0 1px rgba(16,24,40,.10)}
.wcfp-swatch-check{width:19px;height:19px;display:grid;place-items:center;color:#fff;opacity:0;transform:scale(.65);transition:.18s ease;filter:drop-shadow(0 1px 2px rgba(0,0,0,.32))}
.wcfp-swatch-check svg{width:19px;height:19px}
.wcfp-type-swatch .wcfp-option:hover:not(:disabled) .wcfp-swatch-shell{transform:translateY(-2px);border-color:#c9ced6;box-shadow:0 6px 14px rgba(16,24,40,.10)}
.wcfp-type-swatch .wcfp-option.is-selected .wcfp-swatch-shell{border-color:var(--wcfp-accent);box-shadow:0 0 0 2px var(--wcfp-surface),0 0 0 4px var(--wcfp-accent),0 6px 16px rgba(16,24,40,.10)}
.wcfp-type-swatch .wcfp-option.is-selected .wcfp-swatch-check{opacity:1;transform:scale(1)}
.wcfp-type-swatch .wcfp-value{display:none;max-width:80px;text-align:center;color:var(--wcfp-muted);font-size:11px;font-weight:600;line-height:1.35;white-space:normal}
.wcfp-type-swatch .wcfp-option.has-visible-name .wcfp-value{display:block}
.wcfp-tooltip{pointer-events:none;position:absolute;z-index:20;right:50%;bottom:calc(100% + 9px);transform:translate(50%,5px);white-space:nowrap;background:#101828;color:#fff;padding:6px 9px;border-radius:8px;font-size:11px;font-weight:600;line-height:1;opacity:0;visibility:hidden;transition:.15s ease;box-shadow:0 5px 15px rgba(16,24,40,.18)}
.wcfp-tooltip:after{content:"";position:absolute;right:50%;top:100%;transform:translateX(50%);border:5px solid transparent;border-top-color:#101828}
.wcfp-type-swatch .wcfp-option:hover:not(:disabled) .wcfp-tooltip,.wcfp-type-swatch .wcfp-option:focus-visible .wcfp-tooltip{opacity:1;visibility:visible;transform:translate(50%,0)}

/* Icon cards */
.wcfp-type-icon .wcfp-option{appearance:none;-webkit-appearance:none;min-width:88px;min-height:84px;padding:11px 13px 10px;border:1px solid var(--wcfp-border);border-radius:var(--wcfp-radius);background:var(--wcfp-surface);display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-shadow:0 1px 2px rgba(16,24,40,.04);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.wcfp-option-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#f5f6f8;color:#344054;transition:.18s ease}
.wcfp-option-icon svg,.wcfp-option-icon img{width:22px;height:22px;max-width:22px;max-height:22px;object-fit:contain}
.wcfp-type-icon .wcfp-value{font-size:12px;font-weight:700;line-height:1.35;color:var(--wcfp-text)}
.wcfp-card-check{position:absolute;left:7px;top:7px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:var(--wcfp-accent);color:#fff;opacity:0;transform:scale(.7);transition:.18s ease}
.wcfp-card-check svg{width:13px;height:13px}
.wcfp-type-icon .wcfp-option:hover:not(:disabled){transform:translateY(-2px);border-color:#c9ced6;box-shadow:0 8px 20px rgba(16,24,40,.08)}
.wcfp-type-icon .wcfp-option.is-selected{border-color:var(--wcfp-accent);box-shadow:0 0 0 1px var(--wcfp-accent),0 7px 18px rgba(16,24,40,.07)}
.wcfp-type-icon .wcfp-option.is-selected .wcfp-option-icon{background:var(--wcfp-accent);color:#fff}.wcfp-type-icon .wcfp-option.is-selected .wcfp-card-check{opacity:1;transform:scale(1)}

/* Pills */
.wcfp-type-pill .wcfp-option{appearance:none;-webkit-appearance:none;min-height:42px;padding:8px 14px;border:1px solid var(--wcfp-border);border-radius:999px;background:var(--wcfp-surface);display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:700;transition:.18s ease}
.wcfp-inline-check{width:16px;height:16px;display:none;color:var(--wcfp-accent)}.wcfp-inline-check svg{width:16px;height:16px}
.wcfp-type-pill .wcfp-option:hover:not(:disabled){border-color:#c9ced6;transform:translateY(-1px)}
.wcfp-type-pill .wcfp-option.is-selected{border-color:var(--wcfp-accent);box-shadow:0 0 0 1px var(--wcfp-accent)}.wcfp-type-pill .wcfp-option.is-selected .wcfp-inline-check{display:grid}

/* Minimal text */
.wcfp-type-text .wcfp-options{gap:16px}.wcfp-type-text .wcfp-option{appearance:none;-webkit-appearance:none;border:0;border-bottom:1px solid #d0d5dd;background:transparent;padding:5px 0 6px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:650;transition:.18s ease}.wcfp-type-text .wcfp-option.is-selected{border-bottom:2px solid var(--wcfp-accent);color:var(--wcfp-accent)}.wcfp-type-text .wcfp-option.is-selected .wcfp-inline-check{display:grid}

/* Disabled */
.wcfp-option.is-disabled,.wcfp-option:disabled{opacity:.38!important;cursor:not-allowed!important;transform:none!important;filter:grayscale(.15)}
.wcfp-option.is-disabled:after,.wcfp-option:disabled:after{content:"";position:absolute;inset:50% -2px auto -2px;height:1px;background:#98a2b3;transform:rotate(-32deg);transform-origin:center;pointer-events:none}
.wcfp-type-swatch .wcfp-option.is-disabled:after,.wcfp-type-swatch .wcfp-option:disabled:after{inset:calc(var(--wcfp-swatch-size)/2) 3px auto 3px}

.wcfp-reset{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:var(--wcfp-muted);padding:5px 0;display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:color .16s ease}.wcfp-reset[hidden]{display:none!important}.wcfp-reset:hover{color:var(--wcfp-text)}.wcfp-reset svg{width:15px;height:15px}
.variations tr.wcfp-native-row-hidden{display:none!important}

@media(max-width:767px){
  .wcfp-product-features{margin:17px 0 19px}.wcfp-group{margin-bottom:19px}.wcfp-group-head{margin-bottom:10px}.wcfp-group-title{font-size:14px}
  .wcfp-type-icon .wcfp-option{min-width:78px;min-height:78px;padding:10px}.wcfp-option-icon{width:34px;height:34px}.wcfp-option-icon svg,.wcfp-option-icon img{width:21px;height:21px}
  .wcfp-tooltip{display:none}
}
@media(prefers-reduced-motion:reduce){.wcfp-product-features *{transition:none!important}}

/* v1.3.3 — protect the original v1.2 visual system from theme/Elementor button rules.
   These rules do not redesign the component; they only lock critical geometry/reset values. */
.wcfp-product-features button.wcfp-option,
.wcfp-product-features button.wcfp-reset{
  font-family:inherit!important;
  text-transform:none!important;
  letter-spacing:normal!important;
  box-shadow:none;
}
.wcfp-product-features .wcfp-type-swatch button.wcfp-option{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
  width:auto!important;
  max-width:none!important;
  min-width:var(--wcfp-swatch-size)!important;
  min-height:0!important;
  height:auto!important;
  border-radius:0!important;
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  overflow:visible!important;
  line-height:1.5!important;
}
.wcfp-product-features .wcfp-type-swatch .wcfp-swatch-shell{
  width:var(--wcfp-swatch-size)!important;
  height:var(--wcfp-swatch-size)!important;
  min-width:var(--wcfp-swatch-size)!important;
  min-height:var(--wcfp-swatch-size)!important;
  max-width:var(--wcfp-swatch-size)!important;
  max-height:var(--wcfp-swatch-size)!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:var(--wcfp-surface)!important;
  border:1px solid var(--wcfp-border)!important;
}
.wcfp-product-features .wcfp-type-swatch .wcfp-swatch{
  width:calc(var(--wcfp-swatch-size) - 12px)!important;
  height:calc(var(--wcfp-swatch-size) - 12px)!important;
  min-width:calc(var(--wcfp-swatch-size) - 12px)!important;
  min-height:calc(var(--wcfp-swatch-size) - 12px)!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:var(--wcfp-swatch)!important;
}
.wcfp-product-features .wcfp-type-swatch .wcfp-value:not(.force-visible){
  width:auto;
}
.wcfp-product-features .wcfp-options{
  list-style:none!important;
  padding:0!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* v1.3.4 — shortcode-only mode: hide WooCommerce's native variation chooser,
   but keep the original selects alive in the DOM for variation logic. */
form.variations_form.wcfp-native-hidden .variations,
form.variations_form .variations.wcfp-native-variations-hidden{
  display:none!important;
}

/* Prevent the native selector from flashing before JS binds on modern browsers. */
@supports selector(body:has(*)){
  body:has(.wcfp-product-features[data-replace-native="yes"]) form.variations_form .variations{
    display:none!important;
  }
}

/* v1.3.5 — locked shortcode visual layer.
   هدف: جلوگیری از Override شدن ظاهر توسط قالب، Elementor و استایل عمومی button. */
.wcfp-product-features{
  --wcfp-accent:#66705A;
  --wcfp-secondary:#C7B69C;
  color:var(--wcfp-accent)!important;
}
.wcfp-product-features,
.wcfp-product-features *{
  box-sizing:border-box!important;
}
.wcfp-product-features .wcfp-group{
  position:relative!important;
}
.wcfp-product-features .wcfp-group-head{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.wcfp-product-features .wcfp-group-title{
  color:#66705A!important;
  font-family:inherit!important;
  font-size:15px!important;
  font-weight:750!important;
  line-height:1.5!important;
  margin:0!important;
  padding:0!important;
}
.wcfp-product-features .wcfp-selected-label{
  display:inline-flex!important;
  align-items:center!important;
  color:#66705A!important;
  background:#C7B69C!important;
  border:0!important;
  border-radius:999px!important;
  box-shadow:none!important;
}
.wcfp-product-features .wcfp-selected-label:not(:empty)::before{
  background:#66705A!important;
}
.wcfp-product-features .wcfp-options{
  display:flex!important;
  align-items:stretch!important;
  flex-wrap:wrap!important;
  gap:var(--wcfp-gap)!important;
  padding:0!important;
  margin-left:0!important;
  margin-right:0!important;
}
.wcfp-product-features button.wcfp-option,
.wcfp-product-features button.wcfp-reset{
  font-family:inherit!important;
  text-transform:none!important;
  letter-spacing:normal!important;
  outline:none!important;
  -webkit-tap-highlight-color:transparent!important;
}

/* Swatches */
.wcfp-product-features .wcfp-type-swatch button.wcfp-option{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:0!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
  width:auto!important;
  min-width:var(--wcfp-swatch-size)!important;
  min-height:0!important;
  height:auto!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  overflow:visible!important;
}
.wcfp-product-features .wcfp-type-swatch .wcfp-swatch-shell{
  width:var(--wcfp-swatch-size)!important;
  height:var(--wcfp-swatch-size)!important;
  min-width:var(--wcfp-swatch-size)!important;
  min-height:var(--wcfp-swatch-size)!important;
  max-width:var(--wcfp-swatch-size)!important;
  max-height:var(--wcfp-swatch-size)!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:#fff!important;
  border:1px solid #C7B69C!important;
  box-shadow:0 2px 8px rgba(102,112,90,.08)!important;
}
.wcfp-product-features .wcfp-type-swatch .wcfp-swatch{
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:var(--wcfp-swatch)!important;
}
.wcfp-product-features .wcfp-type-swatch .wcfp-option:hover:not(:disabled) .wcfp-swatch-shell{
  transform:translateY(-2px)!important;
  border-color:#66705A!important;
  box-shadow:0 7px 18px rgba(102,112,90,.18)!important;
}
.wcfp-product-features .wcfp-type-swatch .wcfp-option.is-selected .wcfp-swatch-shell{
  border-color:#66705A!important;
  box-shadow:0 0 0 2px #fff,0 0 0 4px #66705A,0 7px 18px rgba(102,112,90,.18)!important;
}
.wcfp-product-features .wcfp-swatch-check{
  color:#fff!important;
}
.wcfp-product-features .wcfp-type-swatch .wcfp-value{
  color:#66705A!important;
  font-family:inherit!important;
}
.wcfp-product-features .wcfp-tooltip{
  background:#66705A!important;
  color:#fff!important;
  border:0!important;
  box-shadow:0 6px 18px rgba(102,112,90,.22)!important;
}
.wcfp-product-features .wcfp-tooltip::after{
  border-top-color:#66705A!important;
}

/* Icon cards */
.wcfp-product-features .wcfp-type-icon .wcfp-option{
  appearance:none!important;
  -webkit-appearance:none!important;
  color:#66705A!important;
  background:#fff!important;
  border:1px solid #C7B69C!important;
  border-radius:var(--wcfp-radius)!important;
  box-shadow:0 2px 8px rgba(102,112,90,.06)!important;
}
.wcfp-product-features .wcfp-type-icon .wcfp-option:hover:not(:disabled){
  border-color:#66705A!important;
  transform:translateY(-2px)!important;
  box-shadow:0 8px 22px rgba(102,112,90,.14)!important;
}
.wcfp-product-features .wcfp-type-icon .wcfp-option.is-selected{
  color:#66705A!important;
  background:#fff!important;
  border-color:#66705A!important;
  box-shadow:0 0 0 1px #66705A,0 8px 20px rgba(102,112,90,.12)!important;
}
.wcfp-product-features .wcfp-option-icon{
  color:#66705A!important;
  background:#C7B69C!important;
  border:0!important;
}
.wcfp-product-features .wcfp-type-icon .wcfp-option.is-selected .wcfp-option-icon{
  color:#fff!important;
  background:#66705A!important;
}
.wcfp-product-features .wcfp-type-icon .wcfp-value{
  color:#66705A!important;
  font-family:inherit!important;
}
.wcfp-product-features .wcfp-card-check{
  color:#fff!important;
  background:#66705A!important;
}

/* Pills */
.wcfp-product-features .wcfp-type-pill .wcfp-option{
  appearance:none!important;
  -webkit-appearance:none!important;
  color:#66705A!important;
  background:#fff!important;
  border:1px solid #C7B69C!important;
  border-radius:999px!important;
  box-shadow:none!important;
}
.wcfp-product-features .wcfp-type-pill .wcfp-option:hover:not(:disabled){
  color:#66705A!important;
  border-color:#66705A!important;
  background:#C7B69C!important;
}
.wcfp-product-features .wcfp-type-pill .wcfp-option.is-selected{
  color:#fff!important;
  background:#66705A!important;
  border-color:#66705A!important;
  box-shadow:0 0 0 1px #66705A!important;
}
.wcfp-product-features .wcfp-type-pill .wcfp-option.is-selected .wcfp-inline-check{
  color:#fff!important;
}

/* Minimal text */
.wcfp-product-features .wcfp-type-text .wcfp-option{
  color:#66705A!important;
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid #C7B69C!important;
  box-shadow:none!important;
}
.wcfp-product-features .wcfp-type-text .wcfp-option.is-selected{
  color:#66705A!important;
  border-bottom:2px solid #66705A!important;
}
.wcfp-product-features .wcfp-inline-check{
  color:#66705A!important;
}

/* Disabled / reset */
.wcfp-product-features .wcfp-option.is-disabled,
.wcfp-product-features .wcfp-option:disabled{
  opacity:.4!important;
  cursor:not-allowed!important;
  transform:none!important;
}
.wcfp-product-features .wcfp-option.is-disabled::after,
.wcfp-product-features .wcfp-option:disabled::after{
  background:#C7B69C!important;
}
.wcfp-product-features button.wcfp-reset{
  appearance:none!important;
  -webkit-appearance:none!important;
  color:#66705A!important;
  background:transparent!important;
  border:0!important;
  padding:5px 0!important;
  margin:0!important;
  box-shadow:none!important;
}
.wcfp-product-features button.wcfp-reset:hover{
  color:#C7B69C!important;
  background:transparent!important;
}
