/* Promotions Frontend Styles */



/* Promotion Badge */

.ed-promotion-badge {

  display: inline-block;

  background-color: #d63638;

  color: #fff;

  padding: 6px 12px;

  border-radius: 4px;

  font-size: 12px;

  font-weight: 600;

  text-transform: uppercase;

  margin-bottom: 10px;

  line-height: 1.4;

}



.ed-promotion-badge-inline {

  display: inline-block;

  background-color: #d63638;

  color: #fff;

  padding: 2px 6px;

  border-radius: 3px;

  font-size: 11px;

  font-weight: 600;

  margin-right: 8px;

  vertical-align: middle;

}



/* Cart Messages */

.ed-promotion-cart-message {

  margin-top: 8px;

  padding: 8px 12px;

  background-color: #f0f6fc;

  border-right: 3px solid #2271b1;

  border-radius: 3px;

}



.ed-promotion-cart-message.ed-promotion-fulfilled {

  background-color: #f0f9f4;

  border-right-color: #00a32a;

}



.ed-promotion-cart-message.ed-promotion-pending {

  background-color: #fff8e5;

  border-right-color: #dba617;

}



.ed-promotion-label {

  font-size: 13px;

  color: #1d2327;

  font-weight: 500;

}



/* Product Badge Positioning */

.woocommerce ul.products li.product .ed-promotion-badge,

.woocommerce div.product .ed-promotion-badge {

    position: absolute;

    bottom: 0;

    right: 0;

    z-index: 10;

    width: calc(100% - 24px);

    margin: 0;

    text-align: center;

    font-size: 13px;

    border-radius: 8px 8px 0 0;

}



.woocommerce ul.products li.product .ed-promotion-badge span,

.woocommerce div.product .ed-promotion-badge span {

  background-image: url('data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.583008 7.01236C0.583008 7.96494 1.16109 8.64803 1.59626 9.07911C1.63126 9.11353 1.66567 9.14678 1.70009 9.17944C1.69834 9.22611 1.69776 9.27336 1.69776 9.32119C1.69776 11.2153 2.74892 12.2583 4.65642 12.2583C4.70776 12.2583 4.75792 12.2583 4.80634 12.2565C4.83959 12.2909 4.87284 12.3259 4.90784 12.3604C5.59092 13.0364 6.27692 13.3637 7.00726 13.3637C7.72767 13.3637 8.40901 13.0359 9.08917 12.3627C9.12534 12.3271 9.15976 12.2915 9.19359 12.2565C9.24259 12.2577 9.29276 12.2589 9.34292 12.2589C11.251 12.2589 12.3016 11.2159 12.3016 9.32178C12.3016 9.27336 12.3016 9.22553 12.2998 9.17886C12.3343 9.14678 12.3681 9.11411 12.4025 9.08028C13.0751 8.41411 13.4163 7.71003 13.4163 6.98844C13.4163 6.03586 12.8383 5.35278 12.4031 4.92169C12.3681 4.88728 12.3343 4.85403 12.2993 4.82136C12.301 4.77469 12.3016 4.72745 12.3016 4.67961C12.3016 2.78553 11.2504 1.74253 9.34292 1.74253C9.29159 1.74253 9.24142 1.74253 9.19242 1.74428C9.15976 1.70986 9.12651 1.67545 9.09151 1.64103C8.40842 0.964945 7.72242 0.637695 6.99267 0.637695C6.26292 0.637695 5.59967 0.955612 4.91017 1.6387C4.87401 1.67428 4.83959 1.70986 4.80634 1.74486C4.75676 1.7437 4.70717 1.74253 4.65642 1.74253C2.74834 1.74253 1.69776 2.78553 1.69776 4.67961C1.69776 4.72803 1.69776 4.77586 1.69951 4.82253C1.66509 4.85461 1.63126 4.88728 1.59684 4.92111C0.924258 5.58728 0.583008 6.29136 0.583008 7.01294V7.01236ZM8.73801 7.64819C8.73801 7.16519 9.13001 6.77319 9.61301 6.77319C10.096 6.77319 10.488 7.16519 10.488 7.64819C10.488 8.13119 10.096 8.52319 9.61301 8.52319C9.13001 8.52319 8.73801 8.13119 8.73801 7.64819ZM8.59801 4.38328C8.87101 4.55011 8.95967 4.91003 8.79167 5.18536L6.20284 9.42386C6.03484 9.69861 5.67609 9.78553 5.40134 9.61811C5.36109 9.59361 5.32434 9.56444 5.29226 9.53236C5.10617 9.34628 5.06417 9.05053 5.20767 8.81661L7.79651 4.57811C7.96451 4.30336 8.32326 4.21586 8.59801 4.38328ZM3.51134 6.35903C3.51134 5.87603 3.90334 5.48403 4.38634 5.48403C4.86934 5.48403 5.26134 5.87603 5.26134 6.35903C5.26134 6.84203 4.86934 7.23403 4.38634 7.23403C3.90334 7.23403 3.51134 6.84203 3.51134 6.35903Z" fill="white"/></svg>');

background-repeat: no-repeat;

    background-position: right 2px;

    padding-inline-start: 20px;

}



.woocommerce ul.products li.product {

  position: relative;

}



/* Product Popup Badge */

.ed-product-popup .ed-promotion-badge {

    position: absolute;
    bottom: 1px;
    right: 10px;
    z-index: 10;
    top: auto;

}



/* Floating Mini Cart Promotion Rows */

.ed-float-cart__row--promotion {

  color: #00a32a;

}



.ed-float-cart__row--promotion strong {

  color: #00a32a;

  font-weight: 600;

}



/* Promotion Messages in Floating Mini Cart */

.ed-promotion-cart-message--float {

  margin-top: 6px;

  margin-bottom: 0;

  padding: 6px 10px;

  font-size: 12px;

  line-height: 1.4;
  margin-block-start: 30px;
    margin-block-end: -25px;

}



.ed-promotion-cart-message--float .ed-promotion-label {

  font-size: 12px;

  line-height: 1.4;

}



.ed-float-cart__details .ed-promotion-cart-message--float {

  margin-top: 4px;

}



/* Total After Discount Row */

.ed-float-cart__row--total-after-discount {

  border-top: 1px solid #e0e0e0;

  padding-top: 10px;

  margin-top: 5px;

  font-weight: 600;

}



.ed-float-cart__row--total-after-discount strong {

  font-weight: 700;

  font-size: 1.1em;

}



/* Responsive */

@media (max-width: 768px) {

  .ed-promotion-badge {

    font-size: 11px;

    padding: 4px 8px;

  }

  

  .ed-promotion-cart-message {

    font-size: 12px;

    padding: 6px 10px;

  }
  

}

@media (max-width: 599px) {
    .woocommerce ul.products li.product .ed-promotion-badge {
        width: calc(100% - 16px);
    }
}



