.box-image {
  position: relative;
}

.apa-voucher-badge.apa-product-voucher-badge {
  position: absolute;
    bottom: 0px;
    left: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2px;
    width: 100%;
    height: 30px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid #e2bd55;
    border-radius: 4px;
    background: var(--apa-badge-right-bg, #fff7f5);
    box-shadow: 0 2px 7px rgba(86, 58, 0, .18);
    color: var(--apa-badge-right-color, #d9084f);
    line-height: 1.12;
    pointer-events: none;
    text-align: center;
    text-transform: uppercase;
}

.apa-voucher-badge.apa-product-voucher-badge:after {
  display: none;
}

.apa-product-voucher-badge-main,
.apa-product-voucher-badge-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.apa-product-voucher-badge-main {
      padding: 0px 2px;
    border-radius: 3px;
    background: var(--apa-badge-left-bg, #e5004f);
    color: var(--apa-badge-left-color, #fff);
    font-size: var(--apa-badge-main-size, 12px);
    letter-spacing: -.025em;
  white-space: nowrap;
}

.apa-product-voucher-badge-copy {
      flex-direction: column;
    background: var(--apa-badge-right-bg, #fff7f5);
    color: var(--apa-badge-right-color, #d9084f);
}

.apa-product-voucher-badge-title,
.apa-product-voucher-badge-description {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apa-product-voucher-badge-title {
  font-size: 9px;
  font-weight: 100;
  white-space: nowrap;
}

.apa-product-voucher-badge-description {
      display: -webkit-box;
    margin-top: 2px;
    font-size: 7.5px;
    font-style: normal;
    text-transform: initial;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

body.single-product .product-gallery-slider {
  position: relative;
}

body.single-product .product-gallery-slider > .apa-product-voucher-badge {
  bottom: -8px;
  height: 82px;
  gap: 7px;
  padding: 5px;
  border-width: 3px;
  border-radius: 13px;
}

body.single-product .product-gallery-slider > .apa-product-voucher-badge .apa-product-voucher-badge-main {
  padding: 5px 9px;
  border-radius: 17px;
  font-size: var(--apa-badge-main-single-size, 26px);
}

body.single-product .product-gallery-slider > .apa-product-voucher-badge .apa-product-voucher-badge-title {
  font-size: 16px;
}

body.single-product .product-gallery-slider > .apa-product-voucher-badge .apa-product-voucher-badge-description {
  margin-top: 4px;
  font-size: 9px;
}

.apa-product-voucher-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.apa-product-voucher-actions button {
  min-height: 29px;
  margin: 0;
  padding: 5px 9px;
  border: 0;
  border-radius: 4px;
  background: #dedbd6;
  color: #211e1a;
  font-size: 11px;
  line-height: 1;
  text-transform: none;
}

.apa-product-voucher-actions button:last-child,
.apa-product-voucher-actions button.is-saved {
  background: #a52525;
  color: #fff;
}

.apa-product-voucher-actions .apa-product-voucher-use {
  background: #b71616;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.apa-product-voucher-actions .apa-product-voucher-use.is-loading {
  cursor: wait;
  opacity: .65;
}

.apa-voucher-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  max-width: min(360px, calc(100vw - 36px));
  padding: 10px 14px;
  border-radius: 6px;
  background: #171513;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}

.apa-product-voucher-empty {
  padding: 15px;
  border-radius: 6px;
  background: #f4f2ef;
  color: #666;
  text-align: center;
}

.apa-mobile-volume-toggle {
  display: none;
}

@media (max-width: 767px) {
  .apa-product-voucher-badge {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  body.single-product .product-gallery-slider > .apa-product-voucher-badge {
    height: 68px;
    gap: 4px;
    padding: 4px;
    border-width: 2px;
    border-radius: 10px;
  }

  body.single-product .product-gallery-slider > .apa-product-voucher-badge .apa-product-voucher-badge-main {
    padding: 4px 6px;
    border-radius: 12px;
    font-size: min(var(--apa-badge-main-single-size, 22px), 22px);
  }

  body.single-product .product-gallery-slider > .apa-product-voucher-badge .apa-product-voucher-badge-title {
    font-size: 11px;
  }

  body.single-product .product-gallery-slider > .apa-product-voucher-badge .apa-product-voucher-badge-description {
    margin-top: 3px;
    font-size: 7px;
  }

  #rightcouple {
    width: 100%;
    margin: 12px 0 15px !important;
  }

  #c-rightcouple {
    width: 100%;
    padding: 0 !important;
  }

  #c-rightcouple #coupons-list {
    flex-direction: row !important;
    gap: 8px;
    padding: 8px 2px 10px;
  }

  #c-rightcouple #coupons-list .wpccl-coupon.wpccl-coupon-disabled.wpccl-coupon-plain {
    flex: 0 0 calc(50% - 4px) !important;
    width: calc(50% - 4px) !important;
    min-width: calc(50% - 4px) !important;
    margin: 0 !important;
  }

  #c-rightcouple .coupon-left {
    width: 20px;
    font-size: 11px;
  }

  #c-rightcouple .coupon-right {
    min-width: 0;
    padding: 9px 6px;
  }

  #c-rightcouple .coupon-right h2 {
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.25;
  }

  #c-rightcouple .coupon-right p {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  #c-rightcouple .coupon-footer {
    display: block;
    font-size: 9px;
    line-height: 1.35;
  }

  #c-rightcouple .coupon-footer span {
    display: block;
  }

  #c-rightcouple .apa-product-voucher-actions {
    gap: 4px;
    margin-top: 6px;
  }

  #c-rightcouple .apa-product-voucher-actions button {
    flex: 1 1 50%;
    min-width: 0;
    padding: 5px 3px;
    font-size: 9px;
    min-height: 24px;
  }

  body.single-product .variable-items-wrapper.apa-mobile-volume-swatches {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  body.single-product .variable-items-wrapper.apa-mobile-volume-swatches .variable-item:not(.radio-variable-item) {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 44px;
    margin: 0 !important;
  }

  body.single-product .variable-items-wrapper.apa-mobile-volume-swatches .variable-item.apa-mobile-volume-extra {
    display: none !important;
  }

  body.single-product .variable-items-wrapper.apa-mobile-volume-swatches > .woo-variation-swatches-variable-item-more {
    display: none !important;
  }

  body.single-product .variable-items-wrapper.apa-mobile-volume-swatches.is-expanded .variable-item.apa-mobile-volume-extra {
    display: flex !important;
  }

  .apa-mobile-volume-toggle {
    display: block;
    width: 100%;
    min-height: 38px;
    margin: 9px 0 4px;
    padding: 7px 10px;
    border: 1px solid #b71616;
    border-radius: 4px;
    background: #fff;
    color: #b71616;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
  }
}
