/* UsedItFirst Amazon conversion layer.
   Loaded only on pages that contain a tagged Amazon link. */

:root{
  --amazon-conversion-ink:#111827;
  --amazon-conversion-accent:#4f46e5;
  --amazon-conversion-accent-hover:#4338ca;
  --amazon-conversion-soft:#eef2ff;
}

/* Research guides: keep the answer and buying action together on every screen. */
.guide .quickbuy{
  display:flex!important;
  min-height:68px;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:14px 0 18px!important;
  border:1px solid #c7d2fe;
  border-radius:15px;
  background:linear-gradient(135deg,#111827,#202b46)!important;
  padding:14px 17px!important;
  color:#fff!important;
  box-shadow:0 12px 30px rgba(17,24,39,.17)!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.guide .quickbuy:hover{
  border-color:#9ba5ff;
  box-shadow:0 18px 38px rgba(17,24,39,.23)!important;
  text-decoration:none;
  transform:translateY(-2px);
}
.guide .quickbuy small{
  display:block;
  margin:0 0 3px;
  color:#c7d2fe!important;
  font-size:.65rem!important;
  font-weight:850!important;
  letter-spacing:.12em!important;
  text-transform:uppercase;
}
.guide .quickbuy strong{
  display:block;
  color:#fff!important;
  font-size:1rem!important;
  font-weight:800;
  line-height:1.3;
}
.guide .quickbuy .qb-cta{
  display:inline-flex;
  min-height:44px;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:var(--amazon-conversion-accent);
  padding:10px 14px;
  color:#fff!important;
  font-size:.86rem!important;
  font-weight:820!important;
  white-space:nowrap;
}

.guide .heropick{
  border-color:#d8dce6!important;
  box-shadow:0 20px 52px rgba(17,24,39,.14)!important;
}
.amazon-product-media{
  display:block;
  min-width:0;
  overflow:hidden;
  background:#f8fafc;
}
.amazon-product-media .hp-img{transition:transform .25s ease}
.amazon-product-media:hover .hp-img{transform:scale(1.025)}
.amazon-product-media:focus-visible{
  position:relative;
  z-index:2;
  outline:3px solid var(--amazon-conversion-accent);
  outline-offset:-4px;
}

.guide .heropick .gbtn[data-buy],
.guide .pick .gbtn[data-buy],
.guide .botcta .gbtn[data-buy]{
  display:flex;
  width:100%;
  min-height:50px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--amazon-conversion-accent);
  border-radius:11px;
  background:var(--amazon-conversion-accent)!important;
  padding:13px 18px;
  color:#fff!important;
  font-weight:820!important;
  box-shadow:0 10px 24px rgba(79,70,229,.22);
  transition:background .16s ease,box-shadow .16s ease,transform .16s ease;
}
.guide .heropick .gbtn[data-buy]:hover,
.guide .pick .gbtn[data-buy]:hover,
.guide .botcta .gbtn[data-buy]:hover{
  border-color:var(--amazon-conversion-accent-hover);
  background:var(--amazon-conversion-accent-hover)!important;
  box-shadow:0 15px 30px rgba(79,70,229,.3);
  text-decoration:none;
  transform:translateY(-1px);
}
.guide .gmicro{margin-top:11px!important}
.amazon-cta-note{
  display:block;
  margin-top:9px;
  color:#7a8494;
  font-size:.72rem;
  line-height:1.45;
}

/* Alternatives should look purchasable, not like footnotes. */
.guide .compare-card .cc-action[data-buy]{
  display:flex;
  width:100%;
  min-height:44px;
  align-items:center;
  justify-content:center;
  align-self:stretch;
  margin-top:18px;
  border:1px solid #c7d2fe;
  border-radius:10px;
  background:var(--amazon-conversion-soft);
  padding:10px 12px;
  color:#3730a3;
  font-size:.82rem;
  font-weight:820;
  box-shadow:none;
  transform:none;
}
.guide .compare-card .cc-action[data-buy]:hover{
  border-color:var(--amazon-conversion-accent);
  background:var(--amazon-conversion-accent);
  color:#fff;
}
.guide .compare-card:has(.cc-action){padding-bottom:17px!important}
.guide .botcta{
  border-color:#c7d2fe!important;
  background:linear-gradient(135deg,#f8f9ff,#fff)!important;
  box-shadow:0 12px 30px rgba(79,70,229,.09);
}
.guide .botcta-t{flex:1;min-width:220px}
.guide .botcta .gbtn[data-buy]{width:auto;min-width:220px}

/* Hands-on product cards already have imagery; strengthen their actions. */
.stage .cta[data-buy],
.buy2[data-buy]{
  min-height:52px;
  border-radius:12px!important;
  background:var(--amazon-conversion-accent)!important;
  color:#fff!important;
  font-weight:800!important;
  box-shadow:0 12px 28px rgba(79,70,229,.25)!important;
}
.stage .cta[data-buy]:hover,
.buy2[data-buy]:hover{
  background:var(--amazon-conversion-accent-hover)!important;
  box-shadow:0 17px 34px rgba(79,70,229,.32)!important;
}

/* One persistent but compact buying path on mobile. */
.amazon-sticky-cta{display:none}
@media(max-width:768px){
  .amazon-sticky-cta{
    position:fixed;
    z-index:70;
    right:10px;
    bottom:calc(10px + env(safe-area-inset-bottom));
    left:10px;
    display:flex;
    min-height:68px;
    align-items:center;
    gap:11px;
    border:1px solid rgba(17,24,39,.12);
    border-radius:16px;
    background:rgba(255,255,255,.98);
    padding:9px 10px;
    box-shadow:0 15px 38px rgba(17,24,39,.22);
    backdrop-filter:blur(12px);
    transform:translateY(calc(100% + 26px));
    transition:transform .22s ease;
  }
  .amazon-sticky-cta.is-visible{transform:translateY(0)}
  .amazon-sticky-thumb{
    width:50px;
    height:50px;
    flex:0 0 50px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    background:#f8fafc;
    object-fit:contain;
    padding:3px;
  }
  .amazon-sticky-copy{min-width:0;flex:1}
  .amazon-sticky-copy small{
    display:block;
    color:#6b7280;
    font-size:.63rem;
    font-weight:800;
    letter-spacing:.08em;
    line-height:1.2;
    text-transform:uppercase;
  }
  .amazon-sticky-copy strong{
    display:-webkit-box;
    overflow:hidden;
    margin-top:3px;
    color:#111827;
    font-size:.84rem;
    font-weight:800;
    line-height:1.22;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }
  .amazon-sticky-button{
    display:inline-flex;
    min-height:48px;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    border-radius:11px;
    background:var(--amazon-conversion-accent);
    padding:11px 14px;
    color:#fff!important;
    font-size:.82rem;
    font-weight:850;
    line-height:1.15;
    text-align:center;
    white-space:nowrap;
  }
  .amazon-sticky-button:active{background:var(--amazon-conversion-accent-hover)}
  .sticky-cta{display:none!important}
  body{padding-bottom:92px!important}
  .guide .quickbuy{align-items:stretch;flex-direction:column}
  .guide .quickbuy .qb-cta{width:100%}
  .guide .botcta{align-items:stretch;flex-direction:column}
  .guide .botcta .gbtn[data-buy]{width:100%;min-width:0}
}

@media(max-width:420px){
  .amazon-sticky-cta{right:7px;bottom:calc(7px + env(safe-area-inset-bottom));left:7px}
  .amazon-sticky-thumb{display:none}
  .amazon-sticky-button{padding-inline:12px}
}

@media(prefers-reduced-motion:reduce){
  .guide .quickbuy,.amazon-product-media .hp-img,.amazon-sticky-cta{transition:none}
  .guide .quickbuy:hover,.guide .heropick .gbtn[data-buy]:hover,.guide .pick .gbtn[data-buy]:hover{transform:none}
}
