/* Color Variables */
:root {
    --mp-brand-orange: #e67e22; /* Primary offer color for accents/badges */
    --mp-brand-dark-blue: #2c3e50; /* For main price and text */
}

.custom-discount-wrapper {
    margin: 10px 0;
}

/* === Price Display for Discount Offers (Flag 1) === */
.price-box.custom-discount-active {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 15px;
    margin-bottom: 15px;
}

/* The new, discounted price */
.custom-discount-active .special-price .price {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--mp-brand-dark-blue); /* Use DARK BLUE for the main price */
    line-height: 1;
}

/* The old, regular price */
.custom-discount-active .old-price .price.strikethrough {
    font-size: 1.6rem;
    color: #757575;
    text-decoration: line-through;
}

/* The discount percentage badge */
.discount-badge {
    padding: 4px 12px;
    background-color: var(--mp-brand-orange); /* Use ORANGE for the badge */
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 15px;
    line-height: 1.4;
    margin-left: 0;
}

/* === General Offer Description (Used by Flag 1) === */
.offer-description {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--mp-brand-dark-blue); /* Use dark blue for text */
}

.offer-description::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    /* Icon: A price tag, colored with the brand orange */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e67e22'%3E%3Cpath d='M21.41 11.58l-9-9A2 2 0 0011 2H4a2 2 0 00-2 2v7a2 2 0 00.59 1.42l9 9a2 2 0 002.82 0l7-7a2 2 0 000-2.82zM6.5 8.5A1.5 1.5 0 118 7a1.5 1.5 0 01-1.5 1.5z'/%3E%3C/svg%3E");
}


/* === IMPROVED: Offer Scheme Description (Flag 2) === */
.offer-scheme-description {
    margin-top: 15px;
    padding: 12px 18px;
    border: 2px dashed var(--mp-brand-orange); /* Dashed border to look like a coupon */
    border-radius: 8px;
    background-color: #fef5ec; /* Very light orange tint background */
    
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icon for the scheme offer (a gift box) */
.offer-scheme-description::before {
    content: '';
    flex-shrink: 0;
    width: 28px; /* Larger icon */
    height: 28px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    /* Icon: A gift box, colored with brand orange */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e67e22'%3E%3Cpath d='M20 7h-2.18A3.001 3.001 0 0012 2a3.001 3.001 0 00-5.82 5H4a2 2 0 00-2 2v11a2 2 0 002 2h16a2 2 0 002-2V9a2 2 0 00-2-2zM12 4a1 1 0 011 1h-2a1 1 0 011-1zm8 16H4V9h16v11z'/%3E%3C/svg%3E");
}

/* Text styling within the scheme offer */
.offer-scheme-description .offer-text {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--mp-brand-dark-blue);
    line-height: 1.3;
}
.offer-scheme-description .offer-label {
    display: none; /* Hide the generic "Special Offer:" label as the design speaks for itself */
}


/* --- Category Page Adjustments --- */
.product-item .custom-discount-active .special-price .price {
    font-size: 1.8rem;
}
.product-item .custom-discount-active .old-price .price.strikethrough {
    font-size: 1.4rem;
}
.product-item .discount-badge {
    font-size: 1rem;
    padding: 3px 8px;
}
.product-item .offer-description,
.product-item .offer-scheme-description {
    font-size: 1.3rem;
    margin-top: 8px;
}
.product-item .offer-description::before {
    width: 16px;
    height: 16px;
}
.product-item .offer-scheme-description {
    padding: 8px 10px;
    gap: 8px;
}
.product-item .offer-scheme-description::before {
    width: 22px;
    height: 22px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .custom-discount-active .special-price .price {
        font-size: 2rem;
    }
}