:root{
  --potpop-accent:#c9922e;
  --potpop-accent-soft:#f4e7ce;
  --potpop-ink:#102018;
  --potpop-muted:#5a685f;
  --potpop-soft:#f6f3eb;
  --potpop-line:rgba(16,32,24,.12);
}
html.potpop-open{overflow:hidden}
.potpop-overlay{
  position:fixed;
  inset:0;
  z-index:999999;
  background:rgba(8,15,12,.52);
  backdrop-filter:blur(8px);
  display:grid;
  place-items:center;
  padding:24px;
  opacity:0;
  transition:opacity .2s ease;
}
.potpop-overlay.is-visible{opacity:1}
.potpop-dialog{
  position:relative;
  width:min(960px,calc(100vw - 48px));
  max-height:min(760px,calc(100vh - 48px));
  display:grid;
  grid-template-columns:minmax(260px,320px) minmax(0,1fr);
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(255,255,255,.6);
  border-radius:30px;
  box-shadow:0 28px 90px rgba(0,0,0,.28);
  transform:translateY(14px) scale(.985);
  transition:transform .22s ease;
}
.potpop-overlay.is-visible .potpop-dialog{transform:none}
.potpop-close{
  all:unset;
  position:absolute;
  top:18px;
  right:18px;
  z-index:5;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#ea7b00;
  color:#fff;
  box-shadow:0 14px 26px rgba(0,0,0,.16);
  cursor:pointer;
  border:1px solid rgba(255,255,255,.24);
  box-sizing:border-box;
  font:700 28px/1 system-ui,sans-serif;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.potpop-close:hover,.potpop-close:focus-visible{
  transform:translateY(-1px);
  background:#d56f00;
  box-shadow:0 18px 30px rgba(0,0,0,.22);
}
.potpop-close span{display:block;line-height:1;transform:translateY(-1px)}
.potpop-media{min-height:420px;background:var(--potpop-soft);overflow:hidden}
.potpop-media img{width:100%;height:100%;object-fit:cover;display:block}

.potpop-dialog.is-product{
  width:min(900px,calc(100vw - 48px));
  grid-template-columns:minmax(230px,290px) minmax(0,1fr);
}
.potpop-dialog.is-product .potpop-media{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:0;
  background:linear-gradient(180deg,#f4e7cc 0%, #ecdfc6 100%);
  padding:28px 24px;
  border-right:1px solid var(--potpop-line);
}
.potpop-dialog.is-product .potpop-media img{
  object-fit:contain;
  width:100%;
  height:auto;
  max-height:430px;
  max-width:210px;
  border-radius:10px;
  box-shadow:0 18px 36px rgba(0,0,0,.14);
}
.potpop-copy{
  padding:42px 42px 36px;
  align-self:center;
  max-height:calc(100vh - 48px);
  overflow:auto;
  box-sizing:border-box;
}
.potpop-dialog.is-product .potpop-copy{padding-right:52px}
.potpop-eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 12px;
  border-radius:999px;
  background:var(--potpop-accent-soft);
  color:#7a5415;
  font:700 12px/1.3 system-ui,sans-serif;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.potpop-copy h2{
  margin:18px 0 12px;
  color:var(--potpop-ink);
  font:700 clamp(28px,3vw,42px)/1.07 system-ui,sans-serif;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.potpop-copy p{
  margin:0 0 18px;
  color:var(--potpop-muted);
  font:400 16px/1.62 system-ui,sans-serif;
  max-width:34ch;
}
.potpop-dialog.is-product .potpop-copy p{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
  max-width:40ch;
}
.potpop-price{
  margin:0 0 16px;
  color:var(--potpop-ink);
  font:800 24px/1.2 system-ui,sans-serif;
}
.potpop-rating{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 12px;
  color:#69736d;
  font:600 13px/1.4 system-ui,sans-serif;
  flex-wrap:wrap;
}
.potpop-stars{color:#b77913;letter-spacing:1px}
.potpop-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-height:52px;
  padding:0 22px;
  border-radius:14px;
  background:var(--potpop-ink);
  color:#fff!important;
  text-decoration:none!important;
  font:700 15px/1 system-ui,sans-serif;
  box-shadow:0 10px 24px rgba(16,32,24,.18);
  transition:transform .18s ease,box-shadow .18s ease;
}
.potpop-cta:hover,.potpop-cta:focus-visible{transform:translateY(-1px);box-shadow:0 14px 28px rgba(16,32,24,.23)}
.potpop-cta span{font-size:20px;line-height:1}
.potpop-dialog.no-media{grid-template-columns:1fr;width:min(650px,calc(100vw - 48px))}
.potpop-dialog.no-media .potpop-copy{padding-right:64px}

@media(max-width:1024px){
  .potpop-dialog{width:min(920px,calc(100vw - 32px))}
  .potpop-dialog.is-product{width:min(860px,calc(100vw - 32px));grid-template-columns:minmax(210px,250px) minmax(0,1fr)}
  .potpop-copy{padding:38px 32px 32px}
}

@media(max-width:767px){
  .potpop-overlay{padding:12px;align-items:end}
  .potpop-dialog{
    width:100%;
    max-height:min(92vh,760px);
    grid-template-columns:1fr;
    border-radius:24px 24px 18px 18px;
    overflow:auto;
  }
  .potpop-dialog.is-product{
    width:100%;
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    gap:0 14px;
    padding:18px 18px 18px 18px;
    align-items:start;
  }
  .potpop-dialog.is-product .potpop-media{
    grid-column:1;
    grid-row:1 / span 2;
    min-height:138px;
    height:138px;
    padding:10px;
    border-radius:16px;
    border-right:0;
  }
  .potpop-dialog.is-product .potpop-media img{
    max-height:118px;
    max-width:76px;
    width:auto;
  }
  .potpop-dialog.is-product .potpop-copy{
    grid-column:2;
    grid-row:1;
    padding:2px 0 0;
    max-height:none;
    overflow:visible;
    align-self:start;
  }
  .potpop-dialog.is-product .potpop-copy h2{
    font-size:clamp(22px,7.2vw,28px);
    margin:8px 0 8px;
  }
  .potpop-dialog.is-product .potpop-copy p{
    font-size:14px;
    line-height:1.48;
    margin-bottom:14px;
    -webkit-line-clamp:3;
    max-width:none;
  }
  .potpop-dialog.is-product .potpop-price{
    font-size:18px;
    margin-bottom:12px;
  }
  .potpop-dialog.is-product .potpop-cta{
    width:100%;
    min-height:50px;
    grid-column:1 / -1;
    margin-top:2px;
  }
  .potpop-dialog.is-product .potpop-rating{
    margin-bottom:10px;
    gap:6px;
    font-size:12px;
  }
  .potpop-dialog.is-product .potpop-eyebrow{
    min-height:25px;
    padding:4px 10px;
    font-size:10.5px;
  }

  .potpop-dialog:not(.is-product),
  .potpop-dialog.is-product.no-media{grid-template-columns:1fr;padding:0}
  .potpop-media{min-height:0;height:min(30vh,220px)}
  .potpop-dialog:not(.is-product) .potpop-media,
  .potpop-dialog.is-product.no-media .potpop-media{border-radius:24px 24px 0 0}
  .potpop-copy{padding:26px 22px 22px;max-height:none;overflow:visible}
  .potpop-copy h2{font-size:clamp(24px,8vw,32px);margin:14px 0 10px}
  .potpop-copy p{font-size:15px;line-height:1.55;margin-bottom:18px;max-width:none}
  .potpop-price{font-size:20px;margin-bottom:18px}
  .potpop-cta{width:100%;min-height:52px}
  .potpop-close{top:12px;right:12px;width:40px;height:40px;border-radius:12px;font-size:26px}
  .potpop-dialog.no-media{width:100%}
  .potpop-dialog.no-media .potpop-copy{padding:34px 22px 22px}
}

@media(prefers-reduced-motion:reduce){.potpop-overlay,.potpop-dialog,.potpop-cta,.potpop-close{transition:none!important}}
