.wspl{
  font-family: var(--wspl-font);
  color: var(--wspl-text);
}

/* ✅ Force theme font inside the plugin (Avada overrides buttons sometimes) */
.wspl,
.wspl *{
  font-family: inherit;
}

/* Specifically for clickable elements */
.wspl button,
.wspl .wspl-switch-btn,
.wspl a.wspl-btn{
  font-family: inherit !important;
}

.wspl-grid{
  display: grid;
  grid-template-columns: repeat(var(--wspl-cols, 3), minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px){
  .wspl-grid{ grid-template-columns: 1fr; }
}

.wspl-card{
  background: var(--wspl-card);
  border-radius: var(--wspl-radius);
  box-shadow: 0 8px 24px rgba(0,0,0,calc(0.04 * var(--wspl-shadow)));
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.wspl-card.is-highlight{
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 14px 44px rgba(0,0,0,0.08);
}

.wspl-headbar{
  padding: 16px 18px;
  background: var(--wspl-head-bg);
  color: var(--wspl-head-text);
  font-weight: var(--wspl-w-head);
  font-size: var(--wspl-s-head);
  text-transform: none;
  letter-spacing: 0.2px;
}

/* Price */
.wspl-price{
  padding: 14px 18px 10px 18px;
}

/* ✅ Inline row: Price big + meta small right next to it */
.wspl-price-row{
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wspl-price-value{
  font-size: var(--wspl-s-price);
  line-height: 1;
  font-weight: var(--wspl-w-price);
  color: var(--wspl-primary); /* ✅ price in primary color */
}

.wspl-price-meta{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--wspl-muted);
  font-weight: var(--wspl-w-text);
  font-size: var(--wspl-s-tax);
  white-space: nowrap;
}

.wspl-currency{
  font-size: var(--wspl-s-cur);
  font-weight: var(--wspl-w-text);
  color: var(--wspl-muted);
}

.wspl-tax{
  font-size: var(--wspl-s-tax);
  color: var(--wspl-muted);
  font-style: italic;
}

/* Body */
.wspl-body{
  padding: 10px 18px 18px 18px;
}

.wspl-badge{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  font-size: var(--wspl-s-badge);
  font-weight: var(--wspl-w-text);
  margin-bottom: 10px;
}

.wspl-subtitle{
  margin-bottom: 12px;
  color: var(--wspl-muted);
  font-weight: var(--wspl-w-sub);
  font-size: var(--wspl-s-sub);
  text-transform: none;
  letter-spacing: 0.2px;
}

/* Features */
.wspl-features{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--wspl-feature-gap);
  text-align: var(--wspl-feature-text-align);
  font-weight: var(--wspl-w-text);
  font-size: var(--wspl-s-feat);
  max-height: var(--wspl-feature-maxh);
  overflow: hidden;
}

.wspl-features-wrap.is-expanded .wspl-features{
  max-height: none;
}

.wspl-features li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: var(--wspl-feature-justify);
}

/* ✅ Default icon (available) */
.wspl-features li::before{
  content: "✓";
  display: inline-block;
  opacity: 0.9;
}

/* ✅ Negative text */
.wspl-features li.is-negative{
  color: var(--wspl-negative);
}

/* ✅ Negative icon (NOT available): through-striked symbol */
.wspl-features li.is-negative::before{
  content: "⦸";
  color: var(--wspl-negative);
}

/* ✅ Option: icons off */
.wspl.wspl-icons-off .wspl-features li::before{
  content: "";
  display: none;
}

/* More/Less */
.wspl-more-btn{
  margin-top: 10px;
  background: transparent;
  border: none;
  color: var(--wspl-muted);
  cursor: pointer;
  font-weight: var(--wspl-w-text);
  padding: 0;
}

/* CTA Button */
.wspl-cta{
  margin-top: 14px;
}

.wspl-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--wspl-btn-radius);
  font-weight: var(--wspl-btn-weight);
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.10);
  transition: transform .12s ease, opacity .12s ease;
}

.wspl-btn:hover{ transform: translateY(-1px); opacity: 0.95; }

.wspl-btn[data-btn-style="primary"]{
  background: var(--wspl-primary);
  color: #fff;
  border-color: transparent;
}

.wspl-btn[data-btn-style="secondary"]{
  background: rgba(0,0,0,0.06);
  color: var(--wspl-head-text);
}

.wspl-btn[data-btn-style="outline"]{
  background: transparent;
  color: var(--wspl-head-text);
}

/* Switch alignment + position */
.wspl-switch-wrap{
  display: flex;
  justify-content: var(--wspl-switch-justify);
  margin-bottom: 14px;
}

.wspl-switch-wrap--bottom{
  margin-top: 14px;
  margin-bottom: 0;
}

/* Switch */
.wspl-switch{
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border-radius: var(--wspl-switch-radius);
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.06);
}

.wspl-switch-btn{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: transparent;
  color: var(--wspl-head-text);
  padding: 10px 12px;
  border-radius: var(--wspl-switch-radius);
  cursor: pointer;
  font-weight: var(--wspl-switch-weight);
  font-size: var(--wspl-s-switch);
}

.wspl-switch-btn.is-active{
  background: var(--wspl-primary);
  color: #fff;
  border-color: transparent;
}