/**
 * Shopify Product Links styles - Modern Design
 */

/* Container */
.shopify-product-link-container {
    padding: 0;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    color: #ffffff;
}

/* Regular product container style (one-time purchase without subscription) */
.shopify-product-link-container:not(.shopify-with-subscription) {
    border-radius: 10px;
    border: 2px solid rgba(253, 253, 255, 0.50);
    background: rgba(217, 217, 217, 0.20);
    padding: 20px;
}

/* Subscription container has different styling */
.shopify-with-subscription {
    padding: 0;
    background: transparent;
    border: none;
}

/* Product image */
.shopify-product-image {
    margin-bottom: 24px;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.shopify-product-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* Hide product image for one-time purchase */
.shopify-product-link-container:not(.shopify-with-subscription) .shopify-product-image,
.shopify-product-link-container:not(.shopify-with-subscription) .shopify-product-image * {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* Product details */
.shopify-product-details {
    margin-bottom: 10px;
}

.shopify-product-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Price container - remove margins */
.shopify-price-container {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    font-size: 22px;
    font-weight: 600;
}

/* Price styling without margins */
.shopify-price {
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: "Kepolu", Sans-serif;
    font-size: 50px;
    line-height: 0.9;
    letter-spacing: -2px;
}

.shopify-price-suffix {
    font-size: 16px;
    font-weight: normal;
    margin-left: 10px;
    margin-top: 12px; /* Push down to align with top of price */
}

/* Quantity selector */
.shopify-quantity-container {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.shopify-quantity-container label {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 20px; /* Larger font size */
    color: #ffffff;
    margin-right: 24px;
}

.shopify-quantity-selector {
    display: flex;
    align-items: center;
    min-width: 120px;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    height: 45px; /* Taller quantity selector */
    background: rgba(255, 255, 255, 0.1);
}

.shopify-quantity-minus,
.shopify-quantity-plus {
    width: 40px;
    height: 45px; /* Taller buttons */
    background: transparent; /* Transparent background */
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    user-select: none;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.shopify-quantity-minus:hover,
.shopify-quantity-plus:hover {
    background: rgba(255, 255, 255, 0.25); /* Slightly lighter on hover */
}

.shopify-quantity-input {
    width: 40px;
    height: 45px; /* Taller input */
    border: none;
    background: transparent; /* Transparent background */
    text-align: center;
    font-size: 20px;
    padding: 0;
    margin: 0;
    color: #ffffff;
}

/* Purchase options */
.shopify-purchase-options {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}

/* Adjust purchase option width to account for gap */
.shopify-purchase-option {
    flex: 1;
    width: calc(50% - 4px);
    max-width: calc(50% - 4px);
    box-sizing: border-box;
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    background-color: #FFFFFF1A;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.shopify-purchase-option:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Radio button styles to ensure proper display */
.shopify-purchase-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    outline: none;
    position: relative;
    margin: 0 12px 0 0;
    padding: 0;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
}

/* Selected radio button styling - should be filled blue */
.shopify-purchase-option.selected input[type="radio"] {
    border: 2px solid #3b44ff;
    background-color: #3b44ff;
}

/* Remove the before pseudo-element for all radio buttons */
.shopify-purchase-option input[type="radio"]::before {
    display: none;
}

/* Price in purchase options */
.shopify-purchase-option .shopify-price-container {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Ensure both price containers have the same alignment */
.shopify-purchase-option[data-type="one-time"] .shopify-price-container,
.shopify-purchase-option[data-type="subscription"] .shopify-price-container {
    margin-left: 42px;
}

/* Override the subscription-specific radio styles to ensure blue filled when selected */
.shopify-purchase-option[data-type="subscription"].selected input[type="radio"] {
    border: 2px solid #3b44ff;
    background-color: #3b44ff;
}

/* Style for purchase options - active/inactive states */
.shopify-purchase-option {
    background-color: #FFFFFF1A;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Selected state styling for both */
.shopify-purchase-option.selected .shopify-price {
    color: #3b44ff !important;
}

/* Ensure consistent blue border for both when selected */
.shopify-purchase-option[data-type="one-time"].selected,
.shopify-purchase-option[data-type="subscription"].selected {
    border: 2px solid #3b44ff;
}

/* Make sure text color changes when selected */
.shopify-purchase-option .shopify-purchase-option-text {
    color: #ffffff;
}

.shopify-purchase-option.selected .shopify-purchase-option-text {
    color: #3032C2;
}

/* Price styling in different states */
.shopify-purchase-option .shopify-price {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
    color: #ffffff;
}

/* Override price color for unselected state to white */
.shopify-purchase-option:not(.selected) .shopify-price {
    color: #ffffff !important;
}

/* Override specific data-type styles that were causing inconsistency */
.shopify-purchase-option[data-type="one-time"],
.shopify-purchase-option[data-type="subscription"] {
    background-color: #FFFFFF1A;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.shopify-purchase-option[data-type="one-time"].selected,
.shopify-purchase-option[data-type="subscription"].selected {
    background-color: #D9D9D9;
    color: #3032C2;
    border-color: #3b44ff;
}

/* Radio buttons for both options */
.shopify-purchase-option input[type="radio"] {
    border-color: #ffffff;
}

.shopify-purchase-option.selected input[type="radio"] {
    border: 2px solid #3b44ff;
    background-color: #3b44ff;
}

.shopify-purchase-option.selected input[type="radio"]::before {
    background-color: #3b44ff;
}

/* Remove the subscription-specific styling that was causing the default difference */
.shopify-purchase-option[data-type="subscription"] {
    background-color: #FFFFFF1A;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.shopify-purchase-option[data-type="subscription"] input[type="radio"] {
    border-color: #ffffff;
}

.shopify-purchase-option[data-type="subscription"] .shopify-price {
    color: #ffffff;
}

.shopify-purchase-option[data-type="subscription"] .shopify-price-suffix {
    color: #ffffff;
}

/* Ensure both options have the same styling when selected */
.shopify-purchase-option[data-type="one-time"].selected .shopify-price,
.shopify-purchase-option[data-type="subscription"].selected .shopify-price {
    color: #3b44ff !important;
}

.shopify-purchase-option[data-type="one-time"].selected .shopify-price-suffix,
.shopify-purchase-option[data-type="subscription"].selected .shopify-price-suffix {
    color: #3032C2;
}

/* Subscription benefits */
.shopify-subscription-benefits-list {
    margin: 15px 0 0 15px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shopify-subscription-benefits-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
}

.shopify-subscription-benefits-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
}

/* Selected state benefit list colors */
.shopify-purchase-option.selected .shopify-subscription-benefits-list li {
    color: #4b5563;
}

.shopify-purchase-option.selected .shopify-subscription-benefits-list li::before {
    color: #4f46e5;
}

/* Force subscription benefit fields to display when they have content */
.subscription-benefits-container.has-content {
    display: block !important;
}

/* Show benefits only when subscription option is selected */
.shopify-subscription-benefits-list {
    display: block;
}

/* Cart row layout */
.shopify-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.shopify-quantity-column {
    flex: 1;
}

.shopify-cart-column {
    flex: 1;
}

/* Terms & Conditions */
.shopify-terms-container {
    margin-top: 15px;
    text-align: center;
}

/* Hide terms and conditions for regular product links */
.shopify-product-link-container:not(.shopify-with-subscription) .shopify-terms-container,
.shopify-product-link-container:not(.shopify-with-subscription) .shopify-terms-container *,
.shopify-terms-container,
.shopify-terms-container * {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.shopify-terms-text {
    color: #666666;
    font-size: 14px;
}

.shopify-terms-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.shopify-terms-link:hover {
    text-decoration: underline;
}

/* Special styling for terms on the magenta background */
.shopify-product-link-container:not(.shopify-with-subscription) .shopify-terms-text {
    color: rgba(255, 255, 255, 0.8);
}

.shopify-product-link-container:not(.shopify-with-subscription) .shopify-terms-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

.shopify-product-link-container:not(.shopify-with-subscription) .shopify-terms-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Error messages */
.shopify-product-link-error {
    padding: 15px;
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #b91c1c;
    margin: 20px 0;
    font-weight: 500;
}

/* Add to Cart button - unified blue style */
.shopify-add-to-cart-button {
    width: 100%;
    min-height: 45px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background-color: #3b44ff;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.shopify-add-to-cart-button:hover,
.shopify-add-to-cart-button:focus {
    background-color: #2128e0;
    color: #ffffff;
    text-decoration: none;
}

/* Out of stock button style */
.shopify-add-to-cart-button.shopify-out-of-stock {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.shopify-add-to-cart-button.shopify-out-of-stock:hover,
.shopify-add-to-cart-button.shopify-out-of-stock:focus {
    background-color: #cccccc;
    color: #666666;
}

.shopify-add-to-cart-button.subscription-selected,
.shopify-add-to-cart-button.subscription-active {
    background-color: #FF8800;
}

/* Media queries */
@media (min-width: 640px) {
    .shopify-purchase-options {
        flex-direction: row;
        gap: 15px;
    }
    
    .shopify-purchase-option {
        flex: 1;
        width: 50%;
    }
    
    .shopify-product-link-container.has-image:not(.shopify-with-subscription) {
        display: block;
    }
    
    .shopify-product-link-container.shopify-with-subscription.has-image {
        display: flex;
        flex-wrap: wrap;
    }
    
    .shopify-product-link-container.shopify-with-subscription.has-image .shopify-product-image {
        flex: 0 0 30%;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .shopify-product-link-container.has-image .shopify-product-details {
        flex: 1;
    }
    
    .shopify-product-link-container.has-image .shopify-purchase-options,
    .shopify-product-link-container.has-image .shopify-cart-row,
    .shopify-product-link-container.has-image .shopify-terms-container {
        width: 100%;
    }
   
}

@media (max-width: 639px) {
    /* Set all price elements to 28px on mobile */
    .shopify-price {
        font-size: 28px !important;
        line-height: 1.1;
    }
    
    .shopify-purchase-options {
        flex-direction: row;
        gap: 8px;
    }
    
    .shopify-purchase-option {
        flex: 1;
        width: 48%;
        padding: 10px;
    }
    
    .shopify-purchase-option-text {
        font-size: 12px;
    }
    
    .shopify-purchase-option .shopify-price-container {
        margin-left: 0;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    .shopify-price-suffix {
        font-size: 14px;
        margin-top: 2px;
    }
}

/* Small screens - ensure quantity is inline */
@media (max-width: 480px) {
    /* Keep all price elements at 28px for consistency */
    .shopify-price {
        font-size: 28px !important;
        line-height: 1.1;
    }
    
    .shopify-cart-container {
        padding: 12px;
    }
    
    .shopify-cart-container .shopify-quantity-container {
        justify-content: space-between;
    }
    
    .shopify-cart-container .shopify-quantity-container label {
        font-size: 16px;
        margin-right: 10px;
    }
    
    .shopify-cart-container .shopify-quantity-selector {
        min-width: 120px;
        flex: 0 0 auto;
    }

    .shopify-product-link-container {
        padding: 0px;
    }
    
    .shopify-purchase-options {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .shopify-purchase-option {
        width: calc(50% - 3px);
        max-width: calc(50% - 3px);
        padding: 8px 6px;
    }
    
    .shopify-purchase-option-text {
        font-size: 10px;
    }
    
    .shopify-purchase-option .shopify-price {
        font-size: 24px;
    }
    
    .shopify-purchase-option .shopify-price-container {
        margin-left: 4px;
    }
    
   
    
    .shopify-add-to-cart-button {
        font-size: 18px;
        height: 45px;
    }
    
    .shopify-cart-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .shopify-quantity-column,
    .shopify-cart-column {
        width: 100%;
        flex: 0 0 100%;
    }
    
   
    .shopify-quantity-minus,
    .shopify-quantity-plus {
        width: 35px;
        height: 40px;
        font-size: 20px;
    }
    
    .shopify-quantity-input {
        width: 35px;
        height: 40px;
        font-size: 18px;
    }
    
    
    .shopify-quantity-container label {
        margin-right: 0;
        margin-bottom: 8px;
        font-size: 16px;
    }
    
    /* Ensure radio button is properly sized */
    .shopify-purchase-option input[type="radio"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
        margin: 0 6px 0 0;
        padding: 0;
    }
    
    /* Reduce text size further if needed */
    .shopify-purchase-option-text {
        font-size: 8px;
        line-height: 1.1;
        margin: 0;
        padding: 0;
    }

     /* Further reduce text size */
     .shopify-purchase-option[data-type="one-time"] .shopify-purchase-option-text,
     .shopify-purchase-option[data-type="subscription"] .shopify-purchase-option-text {
         font-size: 12px;
     }

     .shopify-purchase-option[data-type="one-time"] .shopify-price-container, .shopify-purchase-option[data-type="subscription"] .shopify-price-container {
        margin-left: 12px;
     }

     .shopify-with-subscription.subscription-active .shopify-variant-image, .shopify-with-subscription.subscription-active .shopify-variant-image img, .shopify-with-subscription.subscription-active .features-section .shopify-variant-image, .shopify-with-subscription.subscription-active .features-section .shopify-variant-image img {
        max-height: 90px;
        margin: 0 auto;
     }
}

/* Even smaller screens */
@media (max-width: 375px) {
   
    /* Remove conflicting price size to use the one defined in the main media query */
    
    /* Further reduce radio button size */
    .shopify-purchase-option input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }
}

/* Hide quantity selector when subscription is active */
.shopify-with-subscription.subscription-active .shopify-quantity-container {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* Make the add to cart button take full width when subscription is active */
.shopify-with-subscription.subscription-active .shopify-cart-column {
    width: 100%;
    flex: 0 0 100%;
}

/* Layout for the subscription features container */
.shopify-subscription-features-container {
    display: flex !important;
    visibility: visible !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    position: static !important;
    z-index: auto !important;
    overflow: visible !important;
    background-color: #D9D9D9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #3b44ff;
}

.shopify-variant-image img {
    max-width: 100%;
    height: auto;
    display: block !important;
    border-radius: 8px;
    visibility: visible !important;
}

.shopify-subscription-benefits {
    flex: 1;
}

/* Only show the features in subscription active mode */
.shopify-with-subscription:not(.subscription-active) .shopify-subscription-features-container {
    display: none !important;
}

/* Show features and image when active */
.shopify-with-subscription.subscription-active .shopify-subscription-features-container {
    display: flex !important;
}

/* Subscription active cart layout with benefits and button */
.shopify-with-subscription.subscription-active .shopify-cart-row {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
    width: 100%;
}

.shopify-with-subscription.subscription-active .shopify-cart-column {
    width: 100%;
    margin-top: 10px;
}

/* Style the benefits list */
.shopify-subscription-benefits-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex !important;
    flex-direction: column;
    gap: 0px;
}

.shopify-subscription-benefits-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 4px;
    font-size: 15px;
    color: #333333;
    line-height: 1.5;
}

.shopify-subscription-benefits-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #3b44ff;
    font-weight: bold;
    font-size: 18px;
}




/* Price styling for subscription */
.shopify-with-subscription.subscription-active .shopify-price {
    font-family: "Kepolu", Sans-serif;
    color: #3b44ff;
}

/* Fix for the Add to Cart button when in subscription mode */
.shopify-with-subscription.subscription-active .shopify-add-to-cart-button {
    background-color: #3b44ff;
    margin-top: 10px;
}

/* Make sure the image shows properly */
.shopify-variant-image img {
    display: block !important;
    max-width: 100%;
    height: auto;
}

/* Mobile adjustments */
@media (max-width: 639px) {
    .shopify-subscription-features-container {
        flex-direction: column;
    }
    
    .shopify-variant-image {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Terms styling */
.shopify-terms-container {
    display: none !important;
}

.shopify-with-subscription.subscription-active .shopify-terms-container {
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    margin: 15px 0 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    text-align: right;
}

.shopify-terms-text {
    color: #666666;
    font-size: 14px;
}

.shopify-terms-link {
    color: #3b44ff;
    text-decoration: underline;
    font-weight: 500;
}

.shopify-with-subscription .shopify-terms-container * {
    display: inline !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
}

/* Styling for subscription benefits */
.shopify-subscription-benefits-list {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
}

.shopify-subscription-benefits-list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: #52576a;
    line-height: 1.2;
}

.shopify-subscription-benefits-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #3b44ff;
    font-weight: bold;
    font-size: 16px;
}

/* Image and variant styling */
.shopify-variant-image {
    max-width: 30%;
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
}

.shopify-variant-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Hide subscription benefits list in the purchase option box */
.shopify-purchase-option[data-type="subscription"] .shopify-subscription-benefits-list {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Show features in the subscription features container */
.shopify-subscription-features-container {
    display: flex !important;
    visibility: visible !important;
    margin: 20px 0 0 0;
    width: 100%;
}

/* Layout for the Add to Cart row when subscription is active */
.shopify-with-subscription.subscription-active .shopify-cart-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
    gap: 20px;
}

/* Features column */
.shopify-with-subscription.subscription-active .shopify-cart-row .shopify-subscription-features-container {
    flex: 1;
    display: flex !important;
}

/* Button column */
.shopify-with-subscription.subscription-active .shopify-cart-row .shopify-cart-column {
    flex: 0 0 45%;
    width: 45%;
    margin-top: 0;
}

/* Image and variant styling */
.shopify-variant-image {
    width: 100px;
    max-width: 100px;
    flex: 0 0 100px;
    margin-right: 15px;
    display: block !important;
}

.shopify-variant-image img {
    max-width: 100%;
    height: auto;
    display: block !important;
    border-radius: 8px;
    visibility: visible !important;
}

/* Style the benefits list that appears beside the button */
.shopify-subscription-benefits {
    flex: 1;
}

.shopify-subscription-benefits-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex !important;
    flex-direction: column;
    gap: 0px;
}

/* Terms and conditions text below combined container */
.shopify-with-subscription.subscription-active .shopify-terms-container {
    text-align: center;
    width: 100%;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.shopify-with-subscription.subscription-active .shopify-terms-link {
    color: #3b44ff;
    text-decoration: underline;
}

/* Bottom version of the combined container for the last mockup */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    border: 2px solid #3b44ff;
    padding:8px 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

/* Left side with image and benefits */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .features-section {
    display: flex;
    flex: 1;
    align-items: center;
}

/* Image in the features section */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-variant-image {
    flex: 0 0 100px;
    margin-right: 20px;
}

.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-variant-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Benefits list in features section */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-subscription-benefits-list {
    margin: 0;
    padding: 0;
}

.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-subscription-benefits-list li {
    font-size: 16px;
    color: #333333;
    padding-left: 24px;
}

.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-subscription-benefits-list li:last-child {
    margin-bottom: 0;
}

/* Right side with Add to Cart button */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .button-section {
    flex: 0 0 180px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add to Cart button in the bottom container */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-add-to-cart-button {
    background-color: #3b44ff;
    color: #ffffff;
    font-size: 22px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Terms and conditions text */
.shopify-with-subscription.subscription-active .shopify-terms-container {
    display: block !important;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
}

.shopify-with-subscription.subscription-active .shopify-terms-text {
    color: rgba(255, 255, 255, 0.8);
}

.shopify-with-subscription.subscription-active .shopify-terms-link {
    color: #3b44ff;
    text-decoration: underline;
}

/* Mobile adjustments for image and benefits layout */
@media (max-width: 639px) {
    .shopify-with-subscription.subscription-active .shopify-bottom-combined-container .features-section {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-variant-image {
        flex: 0 0 60px;
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        margin-right: 10px;
    }
    
    .shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-variant-image img {
        max-height: 60px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .shopify-with-subscription.subscription-active .shopify-bottom-combined-container .features-section {
        gap: 8px;
    }
    
    .shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-variant-image {
        flex: 0 0 50px;
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }
    
    .shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-variant-image img {
        max-height: 50px;
    }
    
    .shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-subscription-benefits-list li {
        font-size: 14px;
        line-height: 1.2;
        margin-bottom: 3px;
    }
}

/* Price styling for one-time purchase */
.shopify-purchase-option[data-type="one-time"] .shopify-price {
    /* Font size is inherited from .shopify-purchase-option .shopify-price */
}

/* Price styling for subscription */
.shopify-purchase-option[data-type="subscription"] .shopify-price {
    /* Font size is inherited from .shopify-purchase-option .shopify-price */
}

/* Price suffix styling */
.shopify-purchase-option .shopify-price-suffix {
    color: inherit;
    margin-top: 12px;
    font-size: 10px;
    margin-left: 10px;
}

/* One-time purchase option */
.shopify-purchase-option[data-type="one-time"] {
    background-color: #FFFFFF1A;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Selected one-time purchase option */
.shopify-purchase-option[data-type="one-time"].selected {
    background-color: #D9D9D9;
    color: #3032C2;
    border-color: #3b44ff;
}

/* Subscription purchase option */
.shopify-purchase-option[data-type="subscription"] {
    background-color: #FFFFFF1A;
    color: #ffffff;
    border-color: rgba(59, 68, 255, 0.3);
}

/* Selected subscription purchase option */
.shopify-purchase-option[data-type="subscription"].selected {
    background-color: #D9D9D9;
    color: #3032C2;
    border-color: #3b44ff;
}

/* Radio buttons for one-time purchase */
.shopify-purchase-option[data-type="one-time"] input[type="radio"] {
    border-color: #ffffff;
}

.shopify-purchase-option[data-type="one-time"] input[type="radio"]:checked {
    border-color: #ffffff;
    background-color: transparent;
}

.shopify-purchase-option[data-type="one-time"] input[type="radio"]:checked::before {
    background-color: #ffffff;
}

/* Radio buttons for subscription */
.shopify-purchase-option[data-type="subscription"] input[type="radio"] {
    border-color: #3b44ff;
}

.shopify-purchase-option[data-type="subscription"] input[type="radio"]:checked {
    border-color: #3b44ff;
    background-color: transparent;
}

.shopify-purchase-option[data-type="subscription"] input[type="radio"]:checked::before {
    background-color: #3b44ff;
}

/* Terms below Add to Cart button */
.shopify-with-subscription.subscription-active .shopify-terms-container {
    display: block !important;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* Terms text styling */
.shopify-with-subscription.subscription-active .shopify-terms-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: inline !important;
}

/* Terms link styling */
.shopify-with-subscription.subscription-active .shopify-terms-link {
    color: #3b44ff;
    text-decoration: underline;
    font-size: 14px;
    display: inline !important;
}

/* Ensure terms appear directly below button in the bottom container */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container + .shopify-terms-container {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    text-align: center;
}

/* Add special styling for "Subscribe & Save Terms" link */
.shopify-with-subscription.subscription-active .shopify-terms-container .subscribe-terms-link {
    display: block !important;
    text-align: center;
    width: 100%;
    margin-top: 5px;
    color: #3b44ff;
    text-decoration: underline;
    font-size: 14px;
}

/* Position the terms link in the button section */
.button-section .subscribe-terms-link {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    display: block;
}

/* Ensure the button takes full width */
.button-section .shopify-add-to-cart-button {
    width: 100%;
    margin-bottom: 0;
}

/* Button section styling */
.shopify-bottom-combined-container .button-section {
    flex: 0 0 250px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Add to Cart button styling */
.button-section .shopify-add-to-cart-button {
    width: 100%;
    margin-bottom: 0;
    display: block;
}

/* Subscribe & Save Terms link styling */
.button-section .subscribe-terms-link {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    display: block;
    color: #3b44ff !important;
    text-decoration: underline !important;
    font-size: 14px !important;
    font-weight: normal !important;
}

/* Ensure proper spacing below the button */
.shopify-bottom-combined-container + .shopify-terms-container {
    margin-top: 10px !important;
    margin-bottom: 20px !important;
}

/* Remove the original terms for cleaner display */
.shopify-terms-container .shopify-terms-text {
    display: none !important;
}


/* Responsive adjustments */
@media (max-width: 639px) {
    .shopify-purchase-agreement-container {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .shopify-purchase-agreement-text,
    .shopify-terms-conditions-link {
        font-size: 13px;
    }
}

/* Button container for vertical layout */
.button-container {
    display: none;
}

.button-container .subscribe-terms-link {
    display: none;
}

.button-container .shopify-add-to-cart-button {
    display: none;
}

/* Also remove the reference to button-container in media queries */
@media (max-width: 639px) {
    .button-container {
        display: none;
    }
    
    .button-container .shopify-add-to-cart-button {
        display: none;
    }
}


/* Unselected state - both options have white text */
.shopify-purchase-option:not(.selected) {
    background-color: #FFFFFF1A;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.shopify-purchase-option:not(.selected) .shopify-price,
.shopify-purchase-option:not(.selected) .shopify-price-suffix,
.shopify-purchase-option:not(.selected) .shopify-purchase-option-text {
    color: #ffffff !important;
}

/* Selected state - both options have blue text on white background */
.shopify-purchase-option.selected {
    background-color: #D9D9D9;
    color: #3032C2;
    border-color: #3b44ff;
}

.shopify-purchase-option.selected .shopify-price {
    font-family: "Kepolu", Sans-serif;
    font-size: 36px;
    letter-spacing: 0;
}

.shopify-purchase-option.selected .shopify-price-suffix,
.shopify-purchase-option.selected .shopify-purchase-option-text {
    color: #3032C2 !important;
}

/* Unselected subscription radio should have white border */
.shopify-purchase-option[data-type="subscription"]:not(.selected) input[type="radio"] {
    border: 2px solid #ffffff;
    background-color: transparent;
}

/* Ensure subscription option has the same magenta background when unselected */
.shopify-purchase-option[data-type="subscription"]:not(.selected) {
    background-color: #FFFFFF1A;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Cleanup any conflicting styles */
.shopify-purchase-option[data-type="subscription"] {
    background-color: #FFFFFF1A;
    color: #ffffff;
}

/* Explicitly ensure that both options have the same radio button style when selected */
.shopify-purchase-option[data-type="one-time"].selected input[type="radio"],
.shopify-purchase-option[data-type="subscription"].selected input[type="radio"] {
    border: 2px solid #3b44ff;
    background-color: #3b44ff;
}

/* Consistent pricing for both options when selected */
.shopify-purchase-option[data-type="one-time"].selected .shopify-price,
.shopify-purchase-option[data-type="subscription"].selected .shopify-price {
    color: #3b44ff !important;
}

/* Fine-tune the price container alignment */
.shopify-purchase-option .shopify-price-container {
    margin-left: 42px;
    margin-top: 4px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

/* Make sure price text is properly sized */
.shopify-purchase-option .shopify-price {
    /* Font family is inherited from .shopify-price */
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: 0;
}

/* Style for the price suffix (Per Month, +S&H) */
.shopify-purchase-option .shopify-price-suffix {
    font-size: 12px;
    margin-top: 5px;
    margin-left: 8px;
}

/* Make sure radio buttons look correct in unselected state */
.shopify-purchase-option:not(.selected) input[type="radio"] {
    border: 2px solid #ffffff;
    background-color: transparent;
}

/* Cart container layout with flexible spacing */
.shopify-cart-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: white;
    border: 2px solid #3b44ff;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 0;
}

/* Quantity container takes appropriate space and remains inline */
.shopify-cart-container .shopify-quantity-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 0;
}

/* Quantity label always remains inline with selector */
.shopify-cart-container .shopify-quantity-container label {
    color: #3b44ff;
    font-size: 20px;
    font-weight: 400;
    margin-right: 20px;
    white-space: nowrap;
}

/* Button wrapper styles */
.shopify-button-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-left: 15px;
}

/* Add to Cart button in the container */
.shopify-cart-container .shopify-add-to-cart-button {
    width: auto;
    min-width: 180px;
    margin-left: 0;
}

/* Mobile adjustments for keeping quantity inline with button */
@media (max-width: 639px) {
    /* Adjust container to ensure proper layout on mobile */
    .shopify-cart-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
        justify-content: center;
    }
    
    /* Keep quantity container inline */
    .shopify-cart-container .shopify-quantity-container {
        flex: 0 0 100%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
    }
    
    /* Full width button wrapper on mobile */
    .shopify-button-wrapper {
        flex: 0 0 100%;
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }
    
    /* Full width button on mobile */
    .shopify-cart-container .shopify-add-to-cart-button {
        width: 100%;
        min-width: 0;
    }
}


/* Very small screens */
@media (max-width: 374px) {
    .shopify-cart-container {
        padding: 10px;
    }
    
    /* Force inline display for quantity container */
    .shopify-cart-container .shopify-quantity-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .shopify-cart-container .shopify-quantity-container label {
        font-size: 14px;
        margin-right: 5px;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    
    /* Ensure selector doesn't grow too large */
    .shopify-cart-container .shopify-quantity-selector {
        min-width: 110px;
        max-width: 110px;
        height: 40px;
        flex: 0 0 auto;
    }
    
    .shopify-cart-container .shopify-quantity-minus,
    .shopify-cart-container .shopify-quantity-plus {
        width: 30px;
        height: 40px;
        font-size: 16px;
    }
    
    .shopify-cart-container .shopify-quantity-input {
        font-size: 16px;
        height: 40px;
        width: 40px;
        flex: 0 0 40px;
    }
    
    .shopify-add-to-cart-button {
        height: 45px;
        font-size: 18px;
        margin-top: 10px;
    }
}

/* Better styling for quantity selector in the blue container */
.shopify-cart-container .shopify-quantity-selector {
    min-width: 140px;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #3b44ff;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
}

/* Make buttons square in the quantity selector */
.shopify-cart-container .shopify-quantity-minus,
.shopify-cart-container .shopify-quantity-plus {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    background: transparent;
    color: #3b44ff;
    border: none;
}

/* Center the input text */
.shopify-cart-container .shopify-quantity-input {
    flex: 1;
    text-align: center;
    border: none;
    font-size: 20px;
    height: 45px;
    padding: 0;
    min-width: 50px;
    color: #3b44ff;
    background: transparent;
}

/* Add to Cart button styling */
.shopify-add-to-cart-button {
    width: 100%;
    min-height: 45px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background-color: #3b44ff;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.shopify-add-to-cart-button:hover,
.shopify-add-to-cart-button:focus {
    background-color: #2128e0;
    color: #ffffff;
    text-decoration: none;
}

/* Out of stock button style */
.shopify-add-to-cart-button.shopify-out-of-stock {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.shopify-add-to-cart-button.shopify-out-of-stock:hover,
.shopify-add-to-cart-button.shopify-out-of-stock:focus {
    background-color: #cccccc;
    color: #666666;
}

.shopify-add-to-cart-button.subscription-selected,
.shopify-add-to-cart-button.subscription-active {
    background-color: #FF8800;
}

/* Fix for the product image section in the subscription-active layout */
.shopify-product-link-container.shopify-with-subscription .shopify-product-image {
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.shopify-product-link-container.shopify-with-subscription .shopify-product-image img {
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Make sure variant image in the features section is properly visible and sized */
.shopify-with-subscription.subscription-active .features-section .shopify-variant-image {
    flex: 0 0 70px;
    width: 70px;
    min-width: 70px;
    max-width: 70px;
    margin-right: 15px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.shopify-with-subscription.subscription-active .features-section .shopify-variant-image img {
    display: block !important;
    visibility: visible !important;
    max-width: 100%;
    max-height: 70px;
    height: auto;
    border-radius: 8px;
}

/* Ensure features section has correct layout with image on left */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .features-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/* Set fixed dimensions for the variant image in subscription view */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-variant-image {
    flex: 0 0 100px;
    width: 100px;
    height: auto;
    margin-right: 0;
    border-radius: 8px;
    overflow: hidden;
}

.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-variant-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Mobile adjustments for the button section */
@media (max-width: 639px) {
    .shopify-with-subscription.subscription-active .shopify-bottom-combined-container {
        flex-direction: column;
    }
    
    .shopify-with-subscription.subscription-active .shopify-bottom-combined-container .button-section {
        margin-left: 0;
        width: 100%;
        flex: 0 0 100%;
    }
    
    .button-section .shopify-add-to-cart-button {
        width: 100%;
    }
    
    .button-section .subscribe-terms-link {
        margin-top: 10px;
        text-align: center;
    }
}

/* Ensure benefits list has proper spacing */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-subscription-benefits {
    flex: 1;
}

.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-subscription-benefits-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-subscription-benefits-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
    color: #333333;
    font-size: 15px;
    line-height: 1.3;
}

.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-subscription-benefits-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #3b44ff;
    font-weight: bold;
}

/* Ensure proper layout for features section with better spacing */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .features-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
}

/* Adjust variant image margins */
.shopify-with-subscription.subscription-active .features-section .shopify-variant-image {
    margin-right: 0;
}

/* Adjust bullet point positioning for better alignment with image */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-subscription-benefits-list li {
    margin-bottom: 5px;
    padding-left: 15px;
}

/* Ensure benefits list displays properly next to the image */
.shopify-with-subscription.subscription-active .shopify-bottom-combined-container .shopify-subscription-benefits {
    flex: 1;
}

/* Mobile spacing adjustments */
@media (max-width: 639px) {
    .shopify-with-subscription.subscription-active .shopify-bottom-combined-container .features-section {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .shopify-with-subscription.subscription-active .shopify-bottom-combined-container .features-section {
        gap: 10px;
    }
}

/* Benefits spacing class for proper alignment - reduced gap */
.benefits-spacing {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.benefits-spacing .shopify-variant-image {
    margin-top: 3px;
}

@media (max-width: 480px) {
    .benefits-spacing {
        gap: 10px;
    }
}

/* Bullet points positioning for better alignment */
.shopify-with-subscription.subscription-active .shopify-subscription-benefits-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #3b44ff;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.2;
}

/* Improve spacing of list items */
.shopify-with-subscription.subscription-active .shopify-subscription-benefits-list li {
    margin-bottom: 4px;
    line-height: 1.2;
}

/* Reduced gap for closer image-to-text spacing */
.reduced-gap {
    gap: 8px !important;
}

.reduced-gap .shopify-variant-image {
    margin-right: 0 !important;
}

/* Adjust bullet points to be closer to text with reduced gap */
.reduced-gap .shopify-subscription-benefits-list li {
    padding-left: 12px;
}

.reduced-gap .shopify-subscription-benefits-list li::before {
    left: 0;
    top: 0;
    font-size: 15px;
} 