/* Main container for Buy More and Save section */
.forlife-buy-more-get-more {
    width: 100%;
    margin: 1rem 0;
}

/* Hide the Buy More and Save section initially */
.forlife-buy-more-get-more.hidden {
    display: none;
}

/* Layout of the container holding product options */
.forlife-buy-more-get-more .buy-more-save-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 1.5rem;
}

/* Individual product option style */
.forlife-buy-more-get-more .product-option {
    border: 2px solid var(--awb-custom_color_4);
    padding: 1.25rem;
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f9f9f9;
    border-radius: 1.5rem;
    flex-basis: calc(50% - 10px);
    position: relative;
}

/* Style for selected product option */
.forlife-buy-more-get-more .product-option.selected {
    border: 2px solid var(--awb-custom_color_2);
}

/* Label for product options */
.forlife-buy-more-get-more .product-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    position: relative;
}

/* Radio button styling */
.forlife-buy-more-get-more .product-radio {
    width: 1.5rem;
    height: 1.5rem;
    appearance: none;
    border: 2px solid #dfdfdf;
    border-radius: 50%;
    position: absolute;
    right: 0;
    cursor: pointer;
}

/* Inner dot when radio is selected */
.forlife-buy-more-get-more .product-radio:checked::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--awb-custom_color_2);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Product image styling */
.forlife-buy-more-get-more .product-option img {
    height: 5rem;
    margin-top: 0.25rem;
}

/* Product info styling */
.forlife-buy-more-get-more .product-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
}

.forlife-buy-more-get-more .product-info h3 {
    color: var(--awb-custom_color_6);
    margin: 0;
    font-size: 1.25rem;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .forlife-buy-more-get-more .product-option {
        flex-basis: 100%;
    }

    .forlife-buy-more-get-more .product-info h3 {
        line-height: 1.1; /* Adjusted line height on mobile */
    }
	
	.forlife-buy-more-get-more .buy-more-save-container {
    gap: 1.5rem;
}
}

/* Savings label style */
.forlife-buy-more-get-more .savings-label {
    position: absolute;
    top: -1rem;
    left: 5%;
    font-size: 0.75rem;
    background-color: #f04a51;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
}

/* Add to Cart button styling */
.forlife-buy-more-get-more .add-to-cart-button-wrapper {
    width: 100%;
    margin-top: 1rem;
}

/* Add to Cart button styling within the form */
.forlife-buy-more-get-more .add-to-cart-button-wrapper form .add-to-cart-button {
    width: 100%;
    padding: 15px;
    background-color: var(--awb-custom_color_1);
    color: white;
    border: none;
    border-radius: 2rem;
    text-align: center;
    display: block;
    text-transform: lowercase;
    letter-spacing: 1px;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
/* Enabled state for Add to Cart button */
.forlife-buy-more-get-more .add-to-cart-button-wrapper form .add-to-cart-button.enabled {
    opacity: 1;
    pointer-events: auto;
}

/* Discounted and final price styles */
.forlife-buy-more-get-more .discounted-price {
    color: var(--awb-custom_color_6);
    display: flex;
    gap: 0.25rem;
    font-family: "Open Sans";
    line-height: 1.3;
    letter-spacing: 1.1px;
    font-size: 0.85rem;
	flex-direction: column;
    align-items: flex-start;
}

.forlife-buy-more-get-more .final-price strong {
    color: var(--awb-custom_color_1);
    font-size: 1rem;
}

/* Add a loading state for the Add to Cart button */
.forlife-buy-more-get-more .add-to-cart-button-wrapper form .add-to-cart-button.loading {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}
.forlife-buy-more-get-more .fusion-post-card-cart-add-to-cart.loading::after, .single_add_to_cart_button.loading::after {
	top: 45%;
}
