/**
 * WooCommerce Dynamic Pricing & Discounts - Product Labels Styles
 */

/* Label Wrapper */
.rp-wcdpd-product-label-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Base Label Styles */
.rp-wcdpd-product-label {
  position: absolute;
  z-index: 10;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rp-wcdpd-product-label:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Position Classes */
.rp-wcdpd-label-top-left {
  top: 10px;
  left: 10px;
}

.rp-wcdpd-label-top-right {
  top: 10px;
  right: 10px;
}

.rp-wcdpd-label-bottom-left {
  bottom: 10px;
  left: 10px;
}

.rp-wcdpd-label-bottom-right {
  bottom: 10px;
  right: 10px;
}

/* Single Product Page Labels */
.rp-wcdpd-label-single {
  font-size: 14px;
  padding: 8px 16px;
}

/* Text Labels */
.rp-wcdpd-label-text {
  display: block;
}

/* Image Labels - Clean, no background, no padding */
.rp-wcdpd-product-label.rp-wcdpd-label-image-type {
    padding: 0;
    background: none !important;
    box-shadow: none;
    border-radius: 0;
}

.rp-wcdpd-product-label.rp-wcdpd-label-image-type:hover {
    box-shadow: none;
}

/* Image Labels */
.rp-wcdpd-label-image {
  max-width: 60px;
  height: auto;
  display: block;
}

.rp-wcdpd-label-single .rp-wcdpd-label-image {
  max-width: 80px;
}

/* RTL Support */
html[dir="rtl"] .rp-wcdpd-label-top-left {
  left: auto;
  right: 10px;
}

html[dir="rtl"] .rp-wcdpd-label-top-right {
  right: auto;
  left: 10px;
}

html[dir="rtl"] .rp-wcdpd-label-bottom-left {
  left: auto;
  right: 10px;
}

html[dir="rtl"] .rp-wcdpd-label-bottom-right {
  right: auto;
  left: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .rp-wcdpd-product-label {
    padding: 4px 8px;
    font-size: 10px;
  }

  /* Image labels stay clean on mobile too */
  .rp-wcdpd-product-label.rp-wcdpd-label-image-type {
    padding: 0;
  }

  .rp-wcdpd-label-image {
    max-width: 40px;
  }

  .rp-wcdpd-label-single {
    font-size: 12px;
    padding: 6px 12px;
  }

  .rp-wcdpd-label-single.rp-wcdpd-label-image-type {
    padding: 0;
  }

  .rp-wcdpd-label-single .rp-wcdpd-label-image {
    max-width: 60px;
  }
}

/* Animation for new labels */
@keyframes rp-wcdpd-label-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.rp-wcdpd-product-label.rp-wcdpd-label-animated {
  animation: rp-wcdpd-label-pulse 2s infinite;
}
