.wcpd-root[hidden] { display: none !important; }
.wcpd-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wcpd-overlay {
  position: absolute;
  inset: 0;
  background: var(--wcpd-overlay);
  opacity: var(--wcpd-overlay-o);
}
.wcpd-popup {
  position: relative;
  width: min(max(var(--wcpd-width), var(--wcpd-img-w, 0px)), 100%);
  max-height: none;
  overflow: auto;
  background: var(--wcpd-bg);
  color: var(--wcpd-text);
  border-radius: var(--wcpd-radius);
  border: var(--wcpd-border-w) solid var(--wcpd-border);
  box-shadow: var(--wcpd-shadow);
  font-family: var(--wcpd-font);
  text-align: var(--wcpd-align);
}
.wcpd-layout-left,
.wcpd-layout-right {
  display: flex;
  align-items: stretch;
}
.wcpd-layout-right { flex-direction: row-reverse; }
.wcpd-layout-left .wcpd-media,
.wcpd-layout-right .wcpd-media {
  flex: 0 0 42%;
  min-height: 220px;
}
.wcpd-layout-left .wcpd-media img,
.wcpd-layout-right .wcpd-media img,
.wcpd-layout-top .wcpd-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wcpd-layout-top .wcpd-media { max-height: none; overflow: hidden; }
.wcpd-bgimg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  pointer-events: none;
}
.wcpd-body { position: relative; padding: var(--wcpd-pad-top) var(--wcpd-pad-right) var(--wcpd-pad-bottom) var(--wcpd-pad-left); }
.wcpd-eyebrow {
  margin: 0 0 8px;
  color: var(--wcpd-accent);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.wcpd-headline {
  margin: 0 0 10px;
  color: var(--wcpd-text);
  font-size: 28px;
  line-height: 1.15;
}
.wcpd-message { color: var(--wcpd-muted); font-size: 15px; line-height: 1.5; }
.wcpd-message p:first-child { margin-top: 0; }
.wcpd-message a { color: var(--wcpd-accent); }
.wcpd-coupon {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: inherit;
  margin: 14px 0;
  flex-wrap: wrap;
}
.wcpd-coupon-label { font-size: 13px; color: var(--wcpd-muted); }
.wcpd-code {
  border: 1px dashed var(--wcpd-accent);
  background: transparent;
  color: var(--wcpd-text);
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.wcpd-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: inherit;
}
.wcpd-button {
  display: inline-block;
  background: var(--wcpd-btn);
  color: var(--wcpd-btn-text);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: var(--wcpd-btn-radius);
  font-weight: 700;
}
.wcpd-dismiss {
  background: none;
  border: 0;
  color: var(--wcpd-muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.wcpd-x {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.wcpd-root.is-open .wcpd-popup { animation: wcpd-in .28s ease; }
.wcpd-root[data-animation="fade"].is-open .wcpd-popup { animation-name: wcpd-fade; }
.wcpd-root[data-animation="slide"].is-open .wcpd-popup { animation-name: wcpd-slide; }
@keyframes wcpd-in { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wcpd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wcpd-slide { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 700px) {
  .wcpd-layout-left, .wcpd-layout-right { flex-direction: column; }
  .wcpd-headline { font-size: 24px; }
}

.wcpd-overlay { z-index: 1; }
.wcpd-popup { z-index: 2; }
.wcpd-root[style*="--wcpd-blur:0px"] .wcpd-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; }
.wcpd-root:not([style*="--wcpd-blur:0px"]) .wcpd-overlay { backdrop-filter: blur(var(--wcpd-blur)); -webkit-backdrop-filter: blur(var(--wcpd-blur)); }
.wcpd-image, .wcpd-media img, .wcpd-bgimg { filter: none; opacity: 1; }
.wcpd-layout-background .wcpd-body { position: relative; z-index: 1; }
.wcpd-headline { font-size: var(--wcpd-headline); }
.wcpd-message { font-size: var(--wcpd-message); }
.wcpd-body > * + * { margin-top: var(--wcpd-gap); }
.wcpd-eyebrow, .wcpd-headline, .wcpd-message p { margin-bottom: 0; }
.wcpd-layout-top .wcpd-media,
.wcpd-layout-top .wcpd-media img { max-height: var(--wcpd-img); height: var(--wcpd-img); }
.wcpd-button { font-size: var(--wcpd-btn-size); }
.wcpd-btn-outline .wcpd-button { background: transparent; color: var(--wcpd-btn); border: 2px solid var(--wcpd-btn); }
.wcpd-btn-pill .wcpd-button { border-radius: 999px; }
.wcpd-code { background: var(--wcpd-coupon-bg); color: var(--wcpd-coupon-text); border-color: var(--wcpd-coupon-text); }
.wcpd-terms { margin: 0; color: var(--wcpd-muted); font-size: 12px; }
.wcpd-x { background: var(--wcpd-close-bg); color: var(--wcpd-close); }
.is-gradient { background: linear-gradient(160deg, var(--wcpd-bg), var(--wcpd-gradient)); }
.wcpd-pos-bottom, .wcpd-pos-top { align-items: stretch; padding: 0; }
.wcpd-pos-bottom { align-items: flex-end; }
.wcpd-pos-top { align-items: flex-start; }
.wcpd-pos-bottom .wcpd-popup,
.wcpd-pos-top .wcpd-popup { width: 100%; max-width: none; border-radius: 0; }
.wcpd-pos-bottom-right { align-items: flex-end; justify-content: flex-end; }
.wcpd-pos-bottom-right .wcpd-overlay { background: transparent; opacity: 1; backdrop-filter: none; }
@media (max-width: 700px) {
  .wcpd-hide-image-mobile .wcpd-media,
  .wcpd-hide-image-mobile .wcpd-bgimg { display: none; }
}

.wcpd-popup { overflow: hidden; }
.wcpd-media, .wcpd-image { display: block; max-width: 100%; pointer-events: none; }
.wcpd-root { z-index: 100000; }

.wcpd-is-center .wcpd-body,
.wcpd-is-center .wcpd-headline,
.wcpd-is-center .wcpd-message,
.wcpd-is-center .wcpd-eyebrow,
.wcpd-is-center .wcpd-terms { text-align: center; }
.wcpd-is-center .wcpd-actions,
.wcpd-is-center .wcpd-coupon { justify-content: center; }
.wcpd-is-center .wcpd-button { display: inline-block; width: auto; margin-left: auto; margin-right: auto; }
.wcpd-email { display: grid; gap: 8px; margin: 12px 0; }
.wcpd-email input { width: 100%; padding: 10px; border: 1px solid #d6d3d1; border-radius: 8px; }
.wcpd-is-center .wcpd-email { justify-items: center; }
.wcpd-email-note { margin: 0; font-size: 13px; }

.wcpd-popup .wcpd-media { width: min(var(--wcpd-img-w), 100%); height: var(--wcpd-img); max-height: none; margin: 0 auto; }
.wcpd-popup .wcpd-media img.wcpd-image { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: center; }
.wcpd-layout-left .wcpd-media, .wcpd-layout-right .wcpd-media { flex: 0 0 var(--wcpd-img-w); width: var(--wcpd-img-w); height: var(--wcpd-img); }

.wcpd-root { overflow: auto; }
.wcpd-layout-background {
  width: min(var(--wcpd-img-w), calc(100vw - 32px));
  min-height: var(--wcpd-img);
  height: var(--wcpd-img);
}
.wcpd-layout-background .wcpd-bgimg { opacity: 1; background-size: cover; background-position: center; z-index: 0; }
.wcpd-layout-background .wcpd-body {
  position: relative; z-index: 1; min-height: var(--wcpd-img); box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(255,255,255,.92), rgba(255,255,255,.15) 55%, transparent);
}

.wcpd-popup { height: var(--wcpd-height, auto); min-height: var(--wcpd-height, 0); }
.wcpd-layout-background { height: var(--wcpd-height, var(--wcpd-img)); min-height: var(--wcpd-height, var(--wcpd-img)); }
.wcpd-layout-background .wcpd-body { min-height: 100%; }

.wcpd-body, .wcpd-headline, .wcpd-message, .wcpd-eyebrow, .wcpd-terms, .wcpd-coupon-label { text-align: var(--wcpd-align); }
.wcpd-valign-top .wcpd-body, .wcpd-valign-center .wcpd-body, .wcpd-valign-bottom .wcpd-body { display: flex; flex-direction: column; }
.wcpd-valign-top .wcpd-body { justify-content: flex-start; }
.wcpd-valign-center .wcpd-body { justify-content: center; }
.wcpd-valign-bottom .wcpd-body { justify-content: flex-end; }
.wcpd-layout-background .wcpd-body { min-height: 100%; justify-content: center; }
.wcpd-valign-top.wcpd-layout-background .wcpd-body, .wcpd-root.wcpd-valign-top .wcpd-layout-background .wcpd-body { justify-content: flex-start; }
.wcpd-valign-bottom .wcpd-layout-background .wcpd-body { justify-content: flex-end; }
.wcpd-is-center .wcpd-body, .wcpd-is-center .wcpd-headline, .wcpd-is-center .wcpd-message, .wcpd-is-center .wcpd-message p, .wcpd-is-center .wcpd-eyebrow, .wcpd-is-center .wcpd-terms, .wcpd-is-center .wcpd-email, .wcpd-is-center .wcpd-email label { text-align: center; }
.wcpd-is-center .wcpd-actions, .wcpd-is-center .wcpd-coupon, .wcpd-is-center .wcpd-email { justify-content: center; align-items: center; }
.wcpd-is-center .wcpd-email { justify-items: center; }
.wcpd-is-center .wcpd-button { margin-left: auto; margin-right: auto; }

.wcpd-icon { display: inline-flex; width: 1em; height: 1em; margin-right: .35em; vertical-align: -0.15em; }
.wcpd-icon svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; }
.wcpd-icon path, .wcpd-icon circle, .wcpd-icon rect { stroke: currentColor; fill: none; }
.wcpd-is-center .wcpd-icon { margin-right: .35em; }

.wcpd-is-right .wcpd-body, .wcpd-is-right .wcpd-headline, .wcpd-is-right .wcpd-message, .wcpd-is-right .wcpd-message p, .wcpd-is-right .wcpd-eyebrow, .wcpd-is-right .wcpd-terms, .wcpd-is-right .wcpd-email, .wcpd-is-right .wcpd-email label { text-align: right; }
.wcpd-is-right .wcpd-actions, .wcpd-is-right .wcpd-coupon { justify-content: flex-end; }
