/**
 * DigiSphere Coupon Progress Styles - Enhanced Multi-Step Design
 */

/* Promo Indicator Label in Item List */
.ds-promo-indicator {
  display: inline-block;
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(255, 71, 87, 0.2);
  line-height: 1;
  padding: 4px 6px;
  margin-left: 5px;
}

/* Badge Containers - Side Cart (Thumbnail Positioning) */
.xoo-wsc-cart-item {
  position: relative !important;
}

/* Main Cart Labels - Title Positioning (Disable relative for thumbnail cell) */
.woocommerce-cart tr.woocommerce-cart-form__cart-item td.product-thumbnail,
.woocommerce-cart tr.cart_item td.product-thumbnail {
  position: static !important;
}

.ds-offer-badge, .ds-sale-badge {
  display: inline-block;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 10;
  line-height: 1;
  letter-spacing: 0.5px;
  pointer-events: none;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
  text-transform: uppercase;
  animation: ds-pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ds-sale-badge {
  background: #ff4757; /* Standard Red */
  box-shadow: 0 4px 10px rgba(255, 71, 87, 0.2);
}

.ds-offer-badge {
  background: #19cece; /* Brand Teal */
  box-shadow: 0 4px 10px rgba(25, 206, 206, 0.2);
}

/* Custom Positioning for Main Cart Page Table */
.woocommerce-cart td.product-name .ds-offer-badge,
.woocommerce-cart td.product-name .ds-sale-badge {
  position: static !important;
  display: block !important; /* Force to its own line */
  margin-bottom: 10px;
  width: max-content; /* Don't stretch to full width */
  transform: none !important;
  animation: ds-fade-in 0.4s ease-out;
}

/* Ensure the label sits above the title if the title is a link */
.woocommerce-cart td.product-name br {
  display: block;
  content: "";
  margin-top: 5px;
}

@keyframes ds-pop-in {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Progress Bar Wrapper (Body Start) */
.ds-progress-bar-wrapper {
  padding: 10px 15px;
  background: #ffffff;
  border-bottom: 2px solid #f8f9fa;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: visible !important;
}

/* Smooth fragment updates */
#ds-progress-bar-wrapper {
    animation: ds-fade-in 0.4s ease-out;
}

/* Congrats & Goal Messages */
.ds-congrats-message, .ds-goal-message {
    text-align: center;
    margin-bottom: 15px; /* REDUCED significantly */
    font-size: 14px;
    font-weight: 700;
    color: #2f3542;
    padding: 10px 15px;
    border-radius: 8px;
    animation: ds-slide-down 0.5s ease-out;
}

.ds-congrats-message {
    background: rgba(25, 206, 206, 0.1);
    color: #19cece;
    border: 1px dashed #19cece;
}

.ds-goal-message {
    background: #f8f9fa;
    color: #57606f;
}

.ds-goal-message strong {
    color: #19cece;
}

@keyframes ds-slide-down {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes ds-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
