/* MyPouf Exit Intent Cart Popup v2 */

.mypouf-exit-overlay{
  --mypouf-bg:#fff;
  --mypouf-ink:#302721;
  --mypouf-muted:#817269;
  --mypouf-accent:#9d6c55;
  --mypouf-accent-soft:#f4e8e1;
  --mypouf-line:#eadfd9;
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(34,25,21,.66);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease,visibility .22s ease;
}
.mypouf-exit-overlay.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.mypouf-exit-dialog{
  position:relative;
  width:min(1040px,96vw);
  max-height:92vh;
  overflow:hidden;
  border:1px solid rgba(157,108,85,.18);
  border-radius:30px;
  background:var(--mypouf-bg);
  color:var(--mypouf-ink);
  box-shadow:0 34px 110px rgba(32,23,19,.36);
  transform:translateY(18px) scale(.985);
  transition:transform .26s cubic-bezier(.2,.72,.25,1);
  font-family:inherit;
}
.mypouf-exit-overlay.is-open .mypouf-exit-dialog{transform:none}
.mypouf-exit-close{
  position:absolute;
  top:15px;
  right:16px;
  z-index:20;
  width:43px;
  height:43px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid rgba(157,108,85,.13);
  border-radius:50%;
  background:rgba(255,255,255,.9);
  color:#604d43;
  box-shadow:0 7px 20px rgba(66,44,34,.09);
  font-size:30px;
  font-weight:300;
  line-height:1;
  cursor:pointer;
  transition:transform .2s ease,background .2s ease,color .2s ease;
}
.mypouf-exit-close:hover{transform:rotate(7deg);background:var(--mypouf-ink);color:#fff}

.mypouf-exit-header{
  display:flex;
  align-items:center;
  gap:19px;
  padding:25px 70px 22px 27px;
  background:
    radial-gradient(circle at 90% 10%,rgba(255,255,255,.9),transparent 35%),
    linear-gradient(125deg,#f9f3ef 0%,#efe0d7 52%,#f7eee9 100%);
  border-bottom:1px solid var(--mypouf-line);
}
.mypouf-exit-header-icon{
  flex:0 0 72px;
  width:72px;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:22px;
  background:#fff;
  color:var(--mypouf-accent);
  box-shadow:0 12px 32px rgba(105,69,53,.12);
}
.mypouf-exit-header-icon svg{width:43px;height:43px}
.mypouf-exit-header-copy{min-width:0}
.mypouf-exit-eyebrow{
  display:block;
  margin-bottom:4px;
  color:var(--mypouf-accent);
  font-size:10px;
  font-weight:900;
  letter-spacing:1.55px;
}
.mypouf-exit-header h2{
  margin:0 0 5px;
  color:var(--mypouf-ink);
  font-size:28px;
  font-weight:850;
  line-height:1.12;
  letter-spacing:-.5px;
}
.mypouf-exit-header p{
  max-width:720px;
  margin:0;
  color:#78675e;
  font-size:13.5px;
  line-height:1.48;
}

.mypouf-exit-carousel-wrap{
  position:relative;
  padding:21px 57px 14px;
  background:linear-gradient(180deg,#fff 0%,#fff 75%,#fcfaf9 100%);
}
.mypouf-exit-products{
  display:flex;
  flex-direction:row;
  gap:14px;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:3px 2px 12px;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
  direction:ltr;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.mypouf-exit-products::-webkit-scrollbar{display:none}
.mypouf-exit-product{
  flex:0 0 calc((100% - 28px)/3);
  min-width:0;
  display:flex;
  flex-direction:column;
  scroll-snap-align:start;
  border:1px solid #eee4df;
  border-radius:20px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 7px 24px rgba(66,44,34,.055);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.mypouf-exit-product:hover{
  transform:translateY(-2px);
  border-color:#dfcbc0;
  box-shadow:0 13px 30px rgba(66,44,34,.09);
}
.mypouf-exit-thumb{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:1.55/1;
  overflow:hidden;
  background:#f8f5f3;
}
.mypouf-exit-thumb:after{
  content:"";
  position:absolute;
  inset:0;
  box-shadow:inset 0 -25px 30px rgba(42,30,24,.025);
  pointer-events:none;
}
.mypouf-exit-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  padding:9px;
  transition:transform .28s ease;
}
.mypouf-exit-product:hover .mypouf-exit-thumb img{transform:scale(1.025)}
.mypouf-exit-card-body{
  position:relative;
  flex:1;
  display:flex;
  flex-direction:column;
  padding:13px 14px 14px;
}
.mypouf-exit-name{
  display:-webkit-box;
  min-height:37px;
  overflow:hidden;
  color:#3c312b!important;
  font-size:13.5px;
  font-weight:800;
  line-height:1.34;
  text-decoration:none!important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.mypouf-exit-name:hover{color:var(--mypouf-accent)!important}
.mypouf-exit-dimensions{
  margin-top:9px;
  padding:8px 9px;
  border:1px solid #eadbd3;
  border-radius:11px;
  background:#faf5f2;
}
.mypouf-exit-dim-title{
  display:block;
  margin-bottom:4px;
  color:#8e624e;
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.35px;
  text-transform:uppercase;
}
.mypouf-exit-option-values{
  display:flex;
  flex-wrap:wrap;
  gap:4px 7px;
}
.mypouf-exit-option{
  color:#67564d;
  font-size:10.5px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.mypouf-exit-option b{font-weight:800;color:#4d3d35}
.mypouf-exit-card-meta{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding-top:10px;
  color:#95857c;
  font-size:10.5px;
}
.mypouf-exit-card-total{
  margin-top:5px;
  color:#382d27;
  font-size:16px;
  font-weight:900;
}

.mypouf-exit-arrow{
  position:absolute;
  top:50%;
  z-index:10;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid #e6d8d1;
  border-radius:50%;
  background:#fff;
  color:#6e5448;
  box-shadow:0 8px 24px rgba(67,44,34,.13);
  transform:translateY(-50%);
  cursor:pointer;
  transition:.18s ease;
}
.mypouf-exit-arrow span{display:block;margin-top:-3px;font-size:30px;font-weight:300;line-height:1}
.mypouf-exit-arrow:hover:not(:disabled){background:var(--mypouf-ink);color:#fff;transform:translateY(-50%) scale(1.05)}
.mypouf-exit-arrow:disabled{opacity:.25;cursor:default}
.mypouf-exit-prev{left:11px}
.mypouf-exit-next{right:11px}

.mypouf-exit-dots{
  min-height:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin:-7px 0 8px;
}
.mypouf-exit-dot{
  width:5px;
  height:5px;
  border-radius:20px;
  background:#d8c9c1;
  transition:width .18s ease,background .18s ease;
}
.mypouf-exit-dot.is-active{width:16px;background:#98705d}

.mypouf-exit-summary{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  padding:12px 25px;
  border-top:1px solid #eee4df;
  background:#fbf8f6;
}
.mypouf-exit-summary span{color:#78675e;font-size:12px;font-weight:700}
.mypouf-exit-summary strong{color:#302721;font-size:21px;font-weight:900}

.mypouf-exit-actions{
  display:grid;
  grid-template-columns:1fr 1fr 1.15fr;
  gap:10px;
  padding:16px 24px 12px;
  background:#fff;
}
.mypouf-exit-btn{
  min-height:49px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 14px;
  border-radius:13px;
  border:1px solid transparent;
  font-family:inherit;
  font-size:12.5px;
  font-weight:850;
  line-height:1.2;
  text-align:center;
  text-decoration:none!important;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.mypouf-exit-btn:hover{transform:translateY(-1px)}
.mypouf-exit-btn-continue{
  background:#fff;
  border-color:#e7dbd4;
  color:#705e55;
}
.mypouf-exit-btn-continue:hover{background:#f7f1ed}
.mypouf-exit-btn-cart{
  background:#f2e6df;
  border-color:#ead8ce;
  color:#684d40!important;
}
.mypouf-exit-btn-cart:hover{background:#e9d8ce}
.mypouf-exit-btn-checkout{
  background:#342b26;
  color:#fff!important;
  box-shadow:0 10px 23px rgba(52,43,38,.18);
}
.mypouf-exit-btn-checkout:hover{background:#986b56;box-shadow:0 12px 26px rgba(89,59,45,.22)}
.mypouf-exit-btn-icon{font-size:14px}

.mypouf-exit-trust{
  display:flex;
  justify-content:center;
  gap:25px;
  padding:2px 18px 15px;
  color:#97877e;
  font-size:9.5px;
  background:#fff;
}
html.mypouf-exit-lock,
html.mypouf-exit-lock body{overflow:hidden!important}

@media(max-width:800px){
  .mypouf-exit-dialog{width:min(720px,97vw)}
  .mypouf-exit-product{flex-basis:calc((100% - 14px)/2)}
}
@media(max-width:600px){
  .mypouf-exit-overlay{
    align-items:flex-end;
    padding:6px;
    background:rgba(34,25,21,.7);
  }
  .mypouf-exit-dialog{
    width:100%;
    max-height:94dvh;
    display:flex;
    flex-direction:column;
    border-radius:24px 24px 15px 15px;
  }
  .mypouf-exit-close{top:10px;right:10px;width:37px;height:37px;font-size:26px}
  .mypouf-exit-header{
    flex:0 0 auto;
    gap:10px;
    padding:15px 48px 13px 14px;
  }
  .mypouf-exit-header-icon{flex-basis:47px;width:47px;height:47px;border-radius:15px}
  .mypouf-exit-header-icon svg{width:29px;height:29px}
  .mypouf-exit-eyebrow{font-size:7.5px;letter-spacing:1px}
  .mypouf-exit-header h2{font-size:19px;line-height:1.08}
  .mypouf-exit-header p{font-size:10.5px;line-height:1.3}

  .mypouf-exit-carousel-wrap{
    flex:1 1 auto;
    min-height:0;
    padding:12px 34px 7px;
  }
  .mypouf-exit-products{height:100%;min-height:0;padding-bottom:7px}
  .mypouf-exit-product{
    flex:0 0 88%;
    max-height:100%;
  }
  .mypouf-exit-thumb{aspect-ratio:1.65/1}
  .mypouf-exit-card-body{padding:10px 11px}
  .mypouf-exit-name{min-height:auto;font-size:12.5px}
  .mypouf-exit-dimensions{margin-top:6px;padding:6px 7px}
  .mypouf-exit-dim-title{font-size:8.5px}
  .mypouf-exit-option{font-size:9.5px}
  .mypouf-exit-card-meta{padding-top:7px;font-size:9.5px}
  .mypouf-exit-card-total{font-size:15px}
  .mypouf-exit-arrow{width:32px;height:32px}
  .mypouf-exit-arrow span{font-size:25px}
  .mypouf-exit-prev{left:3px}
  .mypouf-exit-next{right:3px}

  .mypouf-exit-dots{margin:-3px 0 5px}
  .mypouf-exit-summary{flex:0 0 auto;padding:9px 13px}
  .mypouf-exit-summary span{font-size:10.5px}
  .mypouf-exit-summary strong{font-size:18px}

  .mypouf-exit-actions{
    flex:0 0 auto;
    grid-template-columns:1fr 1fr;
    gap:7px;
    padding:9px 10px 8px;
  }
  .mypouf-exit-btn{min-height:42px;padding:7px 6px;font-size:10.5px;border-radius:10px}
  .mypouf-exit-btn-continue{grid-column:1/-1;grid-row:2}
  .mypouf-exit-btn-checkout{grid-column:2;grid-row:1}
  .mypouf-exit-btn-cart{grid-column:1;grid-row:1}
  .mypouf-exit-trust{flex:0 0 auto;gap:8px;padding:0 8px 9px;font-size:7.8px}
}
@media(max-width:370px){
  .mypouf-exit-product{flex-basis:92%}
  .mypouf-exit-header p{display:none}
}
@media(prefers-reduced-motion:reduce){
  .mypouf-exit-overlay,.mypouf-exit-dialog,.mypouf-exit-product,.mypouf-exit-arrow,.mypouf-exit-btn{transition:none!important}
  .mypouf-exit-products{scroll-behavior:auto}
}

/* v3.2: products with options show only the requested dimensions label */
.mypouf-exit-dimensions-label-only{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  padding:7px 10px;
}
.mypouf-exit-dimensions-label-only .mypouf-exit-dim-title{
  margin:0;
  font-size:10px;
}
