/* Base wrapper styles with higher specificity */
body .elementor-element.elementor-widget-discount_price .discount-price-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
}

/* Price container core styles */
body .elementor-element.elementor-widget-discount_price .price-container {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

/* Theme styles with maximum specificity */
body .elementor-element.elementor-widget-discount_price .theme-inline .price-container {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

/* Price styles with important flags */
body .elementor-element.elementor-widget-discount_price .regular-price {
    text-decoration: line-through !important;
    color: #999 !important;
    margin: 0 !important;
}

body .elementor-element.elementor-widget-discount_price .sale-price {
    font-weight: bold !important;
    color: #000 !important;
    margin: 0 !important;
}

body .elementor-element.elementor-widget-discount_price .discount-percentage {
    background-color: #ff0000 !important;
    color: #ffffff !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
}

/* Reset and Base Styles */
.elementor .elementor-widget-discount_price .price-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force styles for regular price */
.elementor .elementor-widget-discount_price .regular-price {
    text-decoration: line-through !important;
    color: #999 !important;
    font-size: 0.9em !important;
}

/* Force styles for sale price */
.elementor .elementor-widget-discount_price .sale-price {
    font-weight: bold !important;
    color: #000 !important;
    font-size: 1.2em !important;
}

/* Base styles */
.elementor-widget-discount_price .discount-percentage {
    background-color: #ff0000;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.elementor-widget-discount_price .regular-price {
    text-decoration: line-through !important;
    color: #999;
    display: inline-block;
}

.elementor-widget-discount_price .sale-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
}

/* Discount box positioning */
.discount-left {
    flex-direction: row;
}

.discount-right {
    flex-direction: row-reverse;
}

/* Make sure prices stay together */
.price-container {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

/* Base Theme Styles */
.elementor-widget-discount_price .price-container {
    display: flex;
    gap: 10px;
    padding: 10px;
    width: 100%;
}

/* Theme Variations - More Specific Selectors */
.elementor-widget-discount_price .theme-inline .price-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
}

.elementor-widget-discount_price .theme-vertical .price-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
}

.elementor-widget-discount_price .theme-modern .price-container {
    background: #f5f5f5 !important;
    padding: 15px !important;
    border-radius: 8px !important;
}

.elementor-widget-discount_price .theme-boxed .price-container {
    border: 2px solid #eee !important;
    padding: 15px !important;
}

.elementor-widget-discount_price .theme-card .price-container {
    background: white !important;
    padding: 15px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    text-align: center !important;
}

/* Theme-specific price styles */
.elementor-widget-discount_price .price-container.minimal .sale-price {
    font-size: 1.4em;
}

.elementor-widget-discount_price .price-container.minimal .regular-price {
    font-size: 0.9em;
    opacity: 0.6;
}

.elementor-widget-discount_price .price-container.card .sale-price {
    font-size: 1.6em;
    margin-bottom: 5px;
}

.elementor-widget-discount_price .price-container.card .regular-price {
    font-size: 0.9em;
}

/* Theme-specific discount badge styles */
.elementor-widget-discount_price .theme-modern .discount-percentage {
    border-radius: 20px;
    font-size: 0.9em;
}

.elementor-widget-discount_price .theme-boxed .discount-percentage {
    border-radius: 0;
    transform: skew(-10deg);
}

.elementor-widget-discount_price .theme-minimal .discount-percentage {
    background: #000;
    color: #fff;
    font-size: 0.8em;
}

.elementor-widget-discount_price .theme-card .discount-percentage {
    position: relative;
    top: -5px;
    border-radius: 15px;
    padding: 3px 12px;
    font-size: 0.85em;
}

/* Enhanced inline theme styles */
body .elementor-element.elementor-widget-discount_price .theme-inline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    gap: 8px !important;
}

body .elementor-element.elementor-widget-discount_price .theme-inline .price-container {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Price order control styles */
body .elementor-element.elementor-widget-discount_price .price-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Clean up duplicate styles and remove unnecessary rules */
/* Remove these duplicate sections */
.elementor-widget-discount_price .theme-inline .price-container,
.elementor-widget-discount_price .theme-vertical .price-container,
.discount-left,
.discount-right {
    display: none;
}

/* Add styles for discount badge positioning */
body .elementor-element.elementor-widget-discount_price .discount-left {
    flex-direction: row !important;
}

body .elementor-element.elementor-widget-discount_price .discount-right {
    flex-direction: row-reverse !important;
}

/* Add better specificity for hover states */
body .elementor-element.elementor-widget-discount_price .price-container:hover .regular-price,
body .elementor-element.elementor-widget-discount_price .price-container:hover .sale-price {
    transition: color 0.3s ease !important;
}

/* Hover Animations */
.elementor-widget-discount_price .price-container {
    transition: all 0.3s ease;
}

.discount-hover-float .price-container:hover {
    transform: translateY(-10px);
}

.discount-hover-scale .price-container:hover {
    transform: scale(1.05);
}

/* Theme Base Container - High Specificity */
body .elementor-widget-discount_price[data-widget_type="discount_price.default"] .price-container {
    margin: 0 !important;
    width: auto !important;
}

/* Theme Variations with Maximum Specificity */
body .elementor-widget-discount_price[data-widget_type="discount_price.default"] .theme-inline {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body .elementor-widget-discount_price[data-widget_type="discount_price.default"] .theme-inline .price-container {
    flex-direction: row !important;
    align-items: center !important;
    background: transparent !important;
    padding: 0 !important;
}

body .elementor-widget-discount_price[data-widget_type="discount_price.default"] .theme-vertical .price-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
}

body .elementor-widget-discount_price[data-widget_type="discount_price.default"] .theme-modern .price-container {
    background: #f5f5f5 !important;
    padding: 15px !important;
    border-radius: 8px !important;
}

body .elementor-widget-discount_price[data-widget_type="discount_price.default"] .theme-boxed .price-container {
    border: 2px solid #eee !important;
    padding: 15px !important;
}

body .elementor-widget-discount_price[data-widget_type="discount_price.default"] .theme-card .price-container {
    background: white !important;
    padding: 15px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    text-align: center !important;
}

/* New widget styles */
.elementor-widget-old_price .old-price {
    text-decoration: line-through;
    color: #999;
}

.elementor-widget-new_price .new-price {
    font-weight: bold;
    color: #000;
}

.elementor-widget-discount_badge .discount-badge {
    display: inline-block;
    background-color: #ff0000;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}