:root {
  --wd-offer-purple: #7d3fe0;
  --wd-offer-purple-dark: #5d2db1;
  --wd-offer-purple-soft: #f3e8ff;
  --wd-offer-purple-border: rgba(125, 63, 224, 0.18);
  --wd-offer-blue: #1f6fb5;
  --wd-offer-green: #49a542;
  --wd-offer-text: #1f2533;
  --wd-offer-muted: #8d94a6;
  --wd-offer-surface: #ffffff;
  --wd-offer-surface-alt: #f8f6ff;
  --wd-offer-shadow: 0 18px 44px rgba(26, 26, 44, 0.16);
}

body.single-product .woocommerce-product-gallery .top-badge:not(.wd-offer-badge) {
  display: none !important;
}

body.single-product .summary .wd-offer-badge--summary.top-badge {
  all: unset;
  box-sizing: border-box;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: min(100%, 420px);
  margin: 12px 0 0 !important;
  min-height: 0 !important;
  padding: 9px 14px 9px 14px;
  border: 0 !important;
  border-radius: 8px;
  background: linear-gradient(90deg, rgb(241, 223, 255) 0.02%, rgb(255, 255, 255) 99.98%);
  color: #7334a4;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  vertical-align: top;
  cursor: pointer;
  pointer-events: auto !important;
  float: none !important;
  clear: both;
  box-shadow: none !important;
  text-align: left;
  z-index: 4;
}

body.single-product .summary .wd-offer-badge--summary.top-badge::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgb(241, 223, 255);
  transform: rotate(45deg);
}

body.single-product .summary .wd-offer-badge--summary.top-badge:hover {
  transform: translateY(-1px);
}

body.single-product .summary .wd-offer-badge--summary.top-badge:focus,
body.single-product .summary .wd-offer-badge--summary.top-badge:focus-visible {
  outline: 2px solid rgba(134, 44, 204, 0.28);
  outline-offset: 2px;
}

.wd-offer-badge__summary-copy {
  display: block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.wd-offer-badge__summary-copy strong {
  color: var(--wd-offer-purple-dark);
  font-size: 1.08em;
  font-weight: 700;
}

.wd-offer-badge__summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid currentColor;
  color: inherit;
  flex: 0 0 18px;
}

.wd-offer-badge__summary-icon svg {
  width: 12px;
  height: 12px;
}

body.single-product .summary .wd-offer-panel {
  position: relative;
  margin: 22px 0 24px;
  padding: 30px 32px;
  border-top: 1px solid rgba(31, 37, 51, 0.08);
  background-color: #fbf9ff;
  background-image: radial-gradient(rgba(126, 64, 182, 0.1) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--wd-offer-text);
  overflow: hidden;
}

body.single-product .summary .wd-offer-panel__title {
  margin: 0 0 18px;
  color: #2d3039;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

body.single-product .summary .wd-offer-panel__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

body.single-product .summary .wd-offer-panel__card {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: block;
  width: min(100%, 540px);
  padding: 24px 28px 20px;
  border: 1.5px solid #bd7bea;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(74, 38, 115, 0.08);
  color: inherit;
  cursor: pointer;
}

body.single-product .summary .wd-offer-panel__card:hover {
  border-color: #9d55dc;
  box-shadow: 0 18px 38px rgba(74, 38, 115, 0.12);
}

body.single-product .summary .wd-offer-panel__card:focus,
body.single-product .summary .wd-offer-panel__card:focus-visible {
  outline: 3px solid rgba(157, 85, 220, 0.22);
  outline-offset: 3px;
}

body.single-product .summary .wd-offer-panel__pin {
  position: absolute;
  top: -17px;
  left: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 6px solid #fbf9ff;
  border-radius: 999px;
  background: #bd7bea;
  color: #bd7bea;
  box-shadow: 0 6px 14px rgba(126, 64, 182, 0.16);
}

body.single-product .summary .wd-offer-panel__pin svg {
  width: 18px;
  height: 18px;
}

body.single-product .summary .wd-offer-panel__content {
  display: grid;
  gap: 10px;
}

body.single-product .summary .wd-offer-panel__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: #32343c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

body.single-product .summary .wd-offer-panel__price strong {
  color: #218a16;
  font-size: 1.08em;
  font-weight: 900;
}

body.single-product .summary .wd-offer-panel__price del {
  color: #9299a8;
  font-size: 0.92em;
  font-weight: 700;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

body.single-product .summary .wd-offer-panel__rules {
  display: grid;
  gap: 8px;
}

body.single-product .summary .wd-offer-panel__rule {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #6f7482;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

body.single-product .summary .wd-offer-panel__rule strong {
  color: #30333b;
  font-weight: 900;
}

body.single-product .summary .wd-offer-panel__rule span {
  color: #8b92a1;
}

body.single-product .summary .wd-offer-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px dashed rgba(126, 64, 182, 0.28);
  color: #68407f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

body.single-product .summary .wd-offer-panel__footer span:last-child {
  color: #1f6fb5;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
}

body.woocommerce .products .product-item .product-img-wrap .wd-product-fit-badge,
body.woocommerce-page .products .product-item .product-img-wrap .wd-product-fit-badge {
  position: absolute;
  top: 18px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: calc(100% - 32px);
  padding: 6px 16px;
  border-radius: 4px;
  background: #fff;
  color: #444b55;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
}

body.woocommerce .products .product-item .product-info .wd-offer-badge--loop.top-badge,
body.woocommerce-page .products .product-item .product-info .wd-offer-badge--loop.top-badge {
  all: unset;
  box-sizing: border-box;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  margin-top: 8px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #208b12;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  z-index: 1;
}

body.woocommerce .products .product-item .product-info .wd-offer-badge--loop.top-badge:hover,
body.woocommerce-page .products .product-item .product-info .wd-offer-badge--loop.top-badge:hover {
  color: #166d0c;
}

body.woocommerce .products .product-item .product-info .wd-offer-badge--loop.top-badge:focus,
body.woocommerce .products .product-item .product-info .wd-offer-badge--loop.top-badge:focus-visible,
body.woocommerce-page .products .product-item .product-info .wd-offer-badge--loop.top-badge:focus,
body.woocommerce-page .products .product-item .product-info .wd-offer-badge--loop.top-badge:focus-visible {
  outline: 2px solid rgba(32, 139, 18, 0.25);
  outline-offset: 3px;
}

.wd-offer-badge__loop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #24a514;
  flex: 0 0 20px;
}

.wd-offer-badge__loop-icon svg {
  width: 20px;
  height: 20px;
}

.wd-offer-badge__loop-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wd-offer-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.wd-offer-modal[hidden] {
  display: none !important;
}

.wd-offer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 32, 0.52);
  backdrop-filter: blur(4px);
}

.wd-offer-modal__dialog {
  position: relative;
  width: min(92vw, 960px);
  margin: min(10vh, 88px) auto 0;
  padding: 52px 0 0;
  background: linear-gradient(180deg, #f6efff 0%, #fff 28%, #fff 100%);
  border-radius: 28px;
  box-shadow: var(--wd-offer-shadow);
  color: var(--wd-offer-text);
}

.wd-offer-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #101628;
  cursor: pointer;
}

.wd-offer-modal__close:hover,
.wd-offer-modal__close:focus-visible {
  color: var(--wd-offer-purple-dark);
}

.wd-offer-modal__crest {
  position: absolute;
  top: -58px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: #f7f3ff;
  box-shadow: 0 18px 32px rgba(125, 63, 224, 0.12);
}

.wd-offer-modal__crest-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: #f0cb69;
  box-shadow: inset 0 -4px 0 rgba(148, 105, 6, 0.16);
}

.wd-offer-modal__crest-spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #ffeaa8 0%, #fff6cf 100%);
  transform: rotate(45deg);
  border-radius: 2px;
}

.wd-offer-modal__crest-spark--left {
  top: 20px;
  left: 6px;
}

.wd-offer-modal__crest-spark--right {
  top: 34px;
  right: 8px;
}

.wd-offer-modal__content {
  padding: 42px 34px 34px;
  text-align: center;
}

.wd-offer-modal__title {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wd-offer-modal__title-prefix,
.wd-offer-modal__title-each {
  color: #202532;
}

.wd-offer-modal__title-current {
  margin-left: 10px;
  color: #a3a9b9;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}

.wd-offer-modal__title-suffix {
  display: inline-block;
}

.wd-offer-modal__subtitle {
  margin: 14px 0 28px;
  font-size: clamp(21px, 2.4vw, 33px);
  line-height: 1.18;
  font-weight: 700;
  color: #283142;
}

.wd-offer-modal__subtitle-save {
  margin-left: 8px;
  color: var(--wd-offer-green);
}

.wd-offer-modal__card {
  padding: 24px 28px;
  border: 1px solid #e6e7ee;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(28, 31, 43, 0.08);
  text-align: left;
}

.wd-offer-modal__card-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wd-offer-modal__offer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #eef9eb;
  color: var(--wd-offer-green);
  flex: 0 0 58px;
}

.wd-offer-modal__offer-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.wd-offer-modal__offer-name {
  margin: 0;
  color: #202532;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}

.wd-offer-modal__offer-caption {
  margin: 8px 0 0;
  color: #5e6577;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
}

.wd-offer-modal__offer-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 22px;
  border-radius: 18px;
  background: #edf8e8;
  color: var(--wd-offer-green);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 800;
  white-space: nowrap;
}

.wd-offer-modal__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 2px dashed #e6e8ef;
}

.wd-offer-modal__offer-note {
  margin: 0;
  color: #9298aa;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}

.wd-offer-modal__details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wd-offer-blue);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 700;
  cursor: pointer;
}

.wd-offer-modal__details-toggle svg {
  transition: transform 0.2s ease;
}

.wd-offer-modal__details-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.wd-offer-modal__details {
  padding-top: 18px;
}

.wd-offer-modal__details-list {
  margin: 0;
  padding-left: 26px;
  color: #7d8497;
  font-size: clamp(18px, 1.8vw, 27px);
  font-weight: 600;
  line-height: 1.45;
}

.wd-offer-modal__details-list li strong {
  color: #374151;
  font-weight: 800;
}

body.wd-offer-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  body.single-product .summary .wd-offer-badge--summary.top-badge {
    max-width: calc(100% - 4px);
    margin-top: 10px !important;
    padding: 9px 12px 9px 12px;
    gap: 10px;
    font-size: 14px;
  }

  body.single-product .summary .wd-offer-badge--summary.top-badge::before {
    left: 14px;
  }

  .wd-offer-badge__summary-copy strong {
    font-size: 1.05em;
  }

  .wd-offer-badge__summary-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  body.single-product .summary .wd-offer-panel {
    margin: 18px -10px 22px;
    padding: 24px 16px;
    background-size: 18px 18px;
  }

  body.single-product .summary .wd-offer-panel__title {
    margin-bottom: 16px;
    font-size: 19px;
  }

  body.single-product .summary .wd-offer-panel__card {
    width: 100%;
    padding: 22px 18px 18px;
    border-radius: 14px;
  }

  body.single-product .summary .wd-offer-panel__pin {
    left: 34px;
    width: 32px;
    height: 32px;
  }

  body.single-product .summary .wd-offer-panel__price {
    gap: 6px;
    font-size: 16px;
  }

  body.single-product .summary .wd-offer-panel__rule {
    font-size: 14px;
  }

  body.single-product .summary .wd-offer-panel__rules {
    gap: 7px;
  }

  body.single-product .summary .wd-offer-panel__footer {
    margin-top: 15px;
    padding-top: 15px;
    font-size: 13px;
  }

  body.woocommerce .products .product-item .product-img-wrap .wd-product-fit-badge,
  body.woocommerce-page .products .product-item .product-img-wrap .wd-product-fit-badge {
    top: 18px;
    left: 18px;
    min-height: 36px;
    max-width: calc(100% - 36px);
    padding: 7px 17px;
    font-size: 16px;
  }

  body.woocommerce .products .product-item .product-info .wd-offer-badge--loop.top-badge,
  body.woocommerce-page .products .product-item .product-info .wd-offer-badge--loop.top-badge {
    min-height: 22px;
    margin-top: 7px;
    font-size: 13px;
  }

  .wd-offer-badge__loop-icon,
  .wd-offer-badge__loop-icon svg {
    width: 18px;
    height: 18px;
  }

  .wd-offer-badge__loop-icon {
    flex-basis: 18px;
  }

  .wd-offer-modal__dialog {
    width: calc(100vw - 20px);
    margin-top: 84px;
    padding-top: 44px;
    border-radius: 24px;
  }

  .wd-offer-modal__crest {
    top: -48px;
    width: 96px;
    height: 96px;
  }

  .wd-offer-modal__crest-icon {
    width: 62px;
    height: 62px;
  }

  .wd-offer-modal__content {
    padding: 34px 18px 22px;
  }

  .wd-offer-modal__subtitle {
    margin-bottom: 22px;
  }

  .wd-offer-modal__card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .wd-offer-modal__card-main {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .wd-offer-modal__offer-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-basis: 48px;
  }

  .wd-offer-modal__offer-save {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
  }

  .wd-offer-modal__card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .wd-offer-modal__details-toggle {
    align-self: flex-end;
  }

  .wd-offer-modal__offer-note {
    max-width: 100%;
  }
}
