/* WooCommerce Purchase Discounts Styles */

.wc-purchase-discount-widget {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.6rem;
}

.wc-purchase-discount-widget__title-wrapper {
	max-width: 35rem;
	width: 100%;
	margin-bottom: 1.6rem;
}

.wc-purchase-discount-widget h3 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
    line-height: 3rem;
    font-weight: 700;
	color: #021347;
}

.wc-purchase-discount-widget .total-purchases {
    font-size: 1.6rem;
	color: #021347;
    margin-bottom: 1.6rem;
}

.wc-purchase-discount-widget .total-amount {
    font-weight: 700;
}

.discount-calculation-info {
    font-size: 1.6rem;
    color: #021347;
}

.wc-purchase-discount-widget__progress-wrapper {
	max-width: fit-content;
	width: 100%;
	border: 2px solid #f0f4f5;
	padding: 2.4rem 2rem 1rem 2rem;
	display: flex;
	flex-direction: column;
    align-items: center;
}

.discount-tiers-info {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
}

.discount-tier-amount {
    text-align: center;
    font-size: 1.2rem;
	color: #021347;
    flex: 1;
    width: 82px;
	max-width: 82px;
	position: absolute;
	top: -2rem;
}

/* Progress bars container */
.discount-progress-bars {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
	align-items: flex-end;
}

/* Base progress bar styles */
.discount-progress-bar {
    position: relative;
    margin-right: 0.5rem;
    background-color: #f0f4f5;
    width: 82px;
    /* Default width for all progress bars */
}

.discount-progress-bar:last-child {
    margin-right: 0;
}

/* Different heights for progress bars */
.discount-progress-bar.height-small {
    height: 40px;
}

.discount-progress-bar.height-medium {
    height: 60px;
}

.discount-progress-bar.height-large {
    height: 80px;
}

/* Progress bar fill - now goes from bottom to top */
.discount-progress-bar-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0; /* Start with 0 height, will be set with JS */
    background: linear-gradient(to top, #fbdb5d 0%, #fbdb5d 100%);
    border-radius: 0 0 4px 4px;
    transition: height 0.5s ease-in-out;
}

.discount-progress-bar.active .discount-progress-bar-inner {
    background: linear-gradient(to top, #f5d742 0%, #f1c40f 100%);
}

.discount-progress-bar-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 1.6rem;
    color: #021347;
    z-index: 2;
}

.next-tier-message {
	font-size: 1.4rem;
	font-weight: 700;
}

.highest-tier-message {
    font-size: 1.4rem;
	font-weight: 700;
	color: #FFC000;
}

/* Discount badge on products */
.wc-purchase-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f1c40f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 9;
}

/* Discount notice on single product */
.wc-purchase-discount-notice {
    padding: 10px 15px;
    margin: 10px 0;
    background-color: #f8f9fa;
    border-left: 4px solid #f1c40f;
    font-size: 14px;
}