/* Saheliyo v2.3.5 — affiliate-only earning visibility */
/* Legacy earning UI is never customer-facing. */
.earn-chip-v19,
.product-card .earn-btn.share,
.product-earn-card-v19,
.product-earn-row-v191{display:none!important}

/* Only our explicit affiliate state may reveal earning UI. */
body.affiliate-product-earn-on-v235 .product-earn-row-v191{
  display:flex!important;
}
body.affiliate-product-earn-on-v235 #earnEstimateText{
  font-size:0!important;
}
body.affiliate-product-earn-on-v235 #earnEstimateText::after{
  content:attr(data-affiliate-label-v235);
  font-size:12px;line-height:1.25;font-weight:800;color:#51434a;
}

.affiliate-rate-chip-v235{
  position:absolute;left:10px;bottom:10px;z-index:4;
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 8px;border-radius:999px;
  border:1px solid rgba(255,255,255,.86);
  background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
  box-shadow:0 5px 16px rgba(79,35,62,.10);
  color:#8f3568;font-size:10.5px;line-height:1;font-weight:850;
  white-space:nowrap;pointer-events:none
}
.affiliate-rate-chip-v235 svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2}

/* Affiliate dashboard preference */
.affiliate-display-setting-v235{
  margin:14px 0 18px;padding:14px 15px;border:1px solid #eee3e9;border-radius:16px;
  background:#fff;display:flex;align-items:center;justify-content:space-between;gap:14px;
  box-shadow:0 7px 22px rgba(76,35,60,.045)
}
.affiliate-display-setting-v235 .copy{min-width:0}
.affiliate-display-setting-v235 b{display:block;font-size:14px;color:#241b20}
.affiliate-display-setting-v235 p{margin:4px 0 0;color:#81737b;font-size:12px;line-height:1.4}
.affiliate-switch-v235{position:relative;flex:0 0 44px;width:44px;height:25px}
.affiliate-switch-v235 input{position:absolute;opacity:0;pointer-events:none}
.affiliate-switch-v235 span{position:absolute;inset:0;border-radius:999px;background:#ddd2d8;transition:.2s;cursor:pointer}
.affiliate-switch-v235 span::after{content:"";position:absolute;width:19px;height:19px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.16);transition:.2s}
.affiliate-switch-v235 input:checked+span{background:linear-gradient(135deg,#d72b7b,#8137ef)}
.affiliate-switch-v235 input:checked+span::after{transform:translateX(19px)}
.affiliate-switch-v235 input:focus-visible+span{outline:3px solid rgba(170,61,137,.18);outline-offset:2px}
.affiliate-dashboard-rate-v235{display:inline-flex;margin-top:7px;padding:4px 8px;border-radius:999px;background:#fff2f8;color:#96386e;font-size:11px;font-weight:850}

@media(max-width:560px){
  .affiliate-rate-chip-v235{left:7px;bottom:7px;padding:4px 7px;font-size:9.5px}
  .affiliate-display-setting-v235{padding:12px 13px;border-radius:14px}
  .affiliate-display-setting-v235 b{font-size:13px}
  .affiliate-display-setting-v235 p{font-size:11.5px}
  body.affiliate-product-earn-on-v235 #earnEstimateText::after{font-size:11.5px}
}
