:where(.epwc-campaigns) {
  --epwc-text: #111111;
  --epwc-text-soft: #6b6b6b;
  --epwc-border: #e7e1d9;
  --epwc-surface: #ffffff;
  --epwc-surface-soft: #fbf8f4;
  --epwc-surface-strong: #f6efe6;
  --epwc-accent: #111111;
  --epwc-accent-soft: #f3ede4;
  --epwc-gift-bg: linear-gradient(135deg, #ffe9ec 0%, #fff7e8 100%);
  --epwc-gift-icon: linear-gradient(135deg, #ff6b81 0%, #ffb347 100%);
  display: grid;
  gap: 18px;
  margin: 0 0 18px;
  color: var(--epwc-text);
  font-family: inherit;
}

:where(.epwc-campaigns *),
:where(.epwc-campaigns *::before),
:where(.epwc-campaigns *::after) {
  box-sizing: border-box;
}

:where(.epwc-campaign-card) {
  padding: 0;
  border: 1px solid var(--epwc-border);
  border-radius: 18px;
  background: var(--epwc-surface);
  color: var(--epwc-text);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

:where(.epwc-campaign-card__inner) {
  display: grid;
  gap: 10px;
  padding: 12px;
}

:where(.epwc-campaign-card__header) {
  display: flex;
  justify-content: center;
  text-align: center;
}

:where(.epwc-campaign-card__title) {
  margin: 0;
  color: #111111;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
}

:where(.epwc-campaigns--mini_cart .epwc-campaign-card__title) {
  font-size: 18px;
}

:where(.epwc-campaign-card__topline) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  align-items: stretch;
}

:where(.epwc-badge) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2eee8;
  border: 1px solid #e5ddd1;
  color: #111111;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

:where(.epwc-badge--strong) {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

:where(.epwc-campaign-card__savings) {
  display: grid;
  gap: 2px;
  justify-items: center;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #eadfce;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf4 0%, #fdf7f0 100%);
  text-align: center;
}

:where(.epwc-campaign-card__savings-label) {
  color: #6f6251;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

:where(.epwc-campaign-card__savings-value) {
  color: #111111;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

:where(.epwc-campaigns--mini_cart .epwc-campaign-card__savings-value) {
  font-size: 28px;
}

:where(.epwc-campaign-card__info) {
  display: grid;
  gap: 0;
}

:where(.epwc-campaign-card__info-line) {
  margin: 0;
  padding: 0;
  color: #111111;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 600;
}

:where(.epwc-campaign-card__gift-box) {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #f0dcc8;
  border-radius: 16px;
  background: var(--epwc-gift-bg);
}

:where(.epwc-campaign-card__gift-head) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

:where(.epwc-campaign-card__gift-heading) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111111;
  font-size: 17px;
  font-weight: 800;
}

:where(.epwc-gift-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--epwc-gift-icon);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 107, 129, 0.22);
}

:where(.epwc-gift-icon svg) {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

:where(.epwc-campaign-card__gift-state) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.08);
  color: #111111;
  font-size: 12px;
  font-weight: 700;
}

:where(.epwc-progress) {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.14);
}

:where(.epwc-progress__bar) {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b81 0%, #ffb347 100%);
}

:where(.epwc-progress__meta) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  color: #5b5348;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

:where(.epwc-campaign-card__gift-name) {
  margin: 0;
  color: #111111;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

:where(.epwc-campaign-card__gift-note) {
  margin: 0;
  color: #5f564a;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

:where(.epwc-gift-choice) {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

:where(.epwc-gift-choice legend) {
  margin: 0;
  padding: 0;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
}

:where(.epwc-gift-choice__option) {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

:where(.epwc-gift-choice__option:has(input:checked)) {
  border-color: #111111;
  background: rgba(255, 255, 255, 1);
}

:where(.epwc-gift-choice__text) {
  display: grid;
  gap: 2px;
}

:where(.epwc-gift-choice__name) {
  color: #111111;
  font-size: 14px;
  font-weight: 700;
}

:where(.epwc-gift-choice__meta),
:where(.epwc-gift-choice__status) {
  color: #675f54;
  font-size: 13px;
}

:where(.epwc-gift-choice__status) {
  min-height: 1.2em;
}

:where(.epwc-gift-choice[data-busy="true"]) {
  opacity: 0.72;
}

:where(.widget_shopping_cart_content, .wd-side-hidden, .wd-shopping-cart, .woocommerce-mini-cart) .epwc-campaigns {
  margin-top: 12px;
}

:where(.widget_shopping_cart_content, .wd-side-hidden, .wd-shopping-cart, .woocommerce-mini-cart) .epwc-campaign-card {
  box-shadow: none;
}

@media (max-width: 640px) {
  :where(.epwc-campaign-card__inner) {
    padding: 12px;
    gap: 9px;
  }

  :where(.epwc-campaign-card__title) {
    font-size: 17px;
  }

  :where(.epwc-campaign-card__topline) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  :where(.epwc-badge) {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 11px;
  }

  :where(.epwc-campaign-card__savings-value) {
    font-size: 24px;
  }

  :where(.epwc-progress__meta) {
    flex-direction: row;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.epwc-campaigns *),
  :where(.epwc-campaigns *::before),
  :where(.epwc-campaigns *::after) {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Woodmart and theme paragraph reset for the compact campaign info stack. */
.epwc-campaigns .epwc-campaign-card__info {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  row-gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.epwc-campaigns .epwc-campaign-card__info > p.epwc-campaign-card__info-line {
  display: block !important;
  margin: 0 !important;
  margin-block: 0 !important;
  padding: 0 !important;
  line-height: 1.22 !important;
}
