/* Custom Product Display Styles */

.custom-product-display {
    font-family: "Mukta", Sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/* Price and Stock Section */
.product-price-section {
    margin-bottom: 20px;
    padding-bottom: 0;
}

.price-stock-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    transition: all 0.3s ease;
    position: relative;
}

.product-price.price-updating {
    opacity: 0.6;
    transform: scale(0.98);
}

.product-price.price-updating::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #faba37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 2px 0;
}

.stock-status.updating {
    opacity: 0.6;
    transform: translateX(-5px);
}

.stock-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.in-stock .stock-dot {
    background-color: #4CAF50;
}

.out-of-stock .stock-dot {
    background-color: #F44336;
}

.in-stock .stock-text {
    color: #4CAF50;
}

.out-of-stock .stock-text {
    color: #F44336;
}

/* Stock Quantity Display */
.stock-quantity {
    margin-top: 8px;
    font-size: 14px;
    color: #757575;
}

.stock-quantity.low-stock {
    color: #FF9800;
    font-weight: 500;
}

.stock-quantity.no-stock {
    color: #F44336;
    font-weight: 500;
}

/* In-cart status */
.stock-status.in-cart .stock-dot {
    background-color: #FF9800;
}

.stock-status.in-cart .stock-text {
    color: #FF9800;
}

/* Backorder status */
.stock-status.on-backorder .stock-dot {
    background-color: #FF9800;
}

.stock-status.on-backorder .stock-text {
    margin-left: 8px;
}

/* Backorder Quantity Display */
.stock-quantity.backorder-allowed {
    color: #FF9800;
    font-weight: 500;
}

/* Custom Variation Selection */
.product-variation-container {
    margin: 25px 0;
    padding: 0;
}

.custom-variation-selector {
    position: relative;
}

.custom-variation-selector label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    font-family: "Mukta", Sans-serif;
}

/* Custom Product Display - Custom Select Wrapper with unique classes */
.custom-product-display .cpd-custom-select-wrapper {
    position: relative !important;
    width: 100% !important;
    font-family: "Mukta", Sans-serif !important;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Mukta", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: #faba37;
    box-shadow: 0 4px 12px rgba(250, 186, 55, 0.15);
    transform: translateY(-1px);
}

.custom-select-wrapper.active .custom-select-trigger {
    border-color: #faba37;
    box-shadow: 0 0 0 4px rgba(250, 186, 55, 0.1), 0 4px 12px rgba(250, 186, 55, 0.15);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.custom-select-text {
    flex: 1;
    color: #333;
}

.custom-select-text.placeholder {
    color: #999;
}

.custom-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #666;
    transition: all 0.3s ease;
}

.custom-select-wrapper.active .custom-select-arrow {
    transform: rotate(180deg);
    color: #faba37;
}

.custom-select-trigger:hover .custom-select-arrow {
    color: #faba37;
}

/* Custom Options Dropdown */
.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #faba37;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.custom-select-wrapper.active .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-family: "Mukta", Sans-serif;
    min-height: 48px;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: linear-gradient(135deg, #fef9f0 0%, #fdf6e8 100%);
    transform: translateX(2px);
}

.custom-select-option.selected {
    background: linear-gradient(135deg, #faba37 0%, #f5a623 100%);
    color: white;
    font-weight: 600;
}

.custom-select-option.selected:hover {
    background: linear-gradient(135deg, #f5a623 0%, #e67e22 100%);
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.option-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.option-price {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.7;
    line-height: 1.2;
}

.custom-select-option.selected .option-price {
    opacity: 0.9;
}

.option-stock {
    display: flex;
    align-items: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.stock-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(0,0,0,0.03);
    min-width: fit-content;
}

.stock-indicator.in-stock {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.08);
}

.stock-indicator.out-of-stock {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.custom-select-option.selected .stock-indicator {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

.stock-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Loading state */
.custom-select-wrapper.loading .custom-select-trigger {
    opacity: 0.7;
    pointer-events: none;
}

.custom-select-wrapper.loading .custom-select-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar styling for options */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: #faba37;
    border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #e67e22;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .custom-select-trigger {
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .custom-select-wrapper.active .custom-select-trigger {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    
    .custom-select-options {
        border-radius: 0 0 10px 10px;
        max-height: 250px;
    }
    
    .custom-select-option {
        padding: 10px 12px;
        min-height: 44px;
    }
    
    .option-name {
        font-size: 14px;
    }
    
    .option-price {
        font-size: 12px;
    }
    
    .stock-indicator {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .option-stock {
        margin-left: 8px;
    }
    
    .custom-variation-selector label {
        font-size: 15px;
        margin-bottom: 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .custom-select-trigger {
        background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
        color: #e0e0e0;
        border-color: #404040;
    }
    
    .custom-select-trigger:hover,
    .custom-select-wrapper.active .custom-select-trigger {
        border-color: #faba37;
    }
    
    .custom-variation-selector label {
        color: #e0e0e0;
    }
    
    .custom-select-options {
        background: #2a2a2a;
        border-color: #faba37;
    }
    
    .custom-select-option {
        color: #e0e0e0;
        border-bottom-color: #404040;
    }
    
    .custom-select-option:hover {
        background: linear-gradient(135deg, #3a3a3a 0%, #2e2e2e 100%);
    }
}

/* Addon Container */
.product-addon-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent linear-gradient(90deg, #FFF5E0 0%, #FFF4DE 100%) 0% 0% no-repeat padding-box;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.addon-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.addon-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #F0E5CE;
    border: 0px;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.2sease;
}

.addon-checkbox:checked ~ .checkbox-custom {
    background-color: #cab78d;

}

.checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
    left: 10px;
    top: 50%;
    width: 8px;
    height: 14px;
    border: solid #7c6738;
    border-width: 0 3px 3px 0;
    border-radius: 0px 0px 4px 0px;
    transform: rotate(45deg) translate(-50%, -50%);
}

.addon-checkbox:checked ~ .checkbox-custom:after {
    display: block;
}

.addon-text {
    font-size: 16px;
    font-weight: 500;
}

.addon-price {
    display: inline-block;
    color: #0073aa;
    font-weight: 600;
    margin-left: auto;
}

/* Quantity and Add to Cart */
.product-actions {
    display: flex
;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
    border-top: 1px solid #F2F2F2;
    position: relative;
    border-bottom: 1px solid #F2F2F2;
    padding: 35px 0px;
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background-color: #f5f5f5;
    border: none;
    color: #333;
    font-size: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding-top: 5px;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
    color:black;
}
.quantity-btn:focus{
    background-color: #e0e0e0;
    color:black;

}
.quantity-input {
    width: 40px!important;
    height: 50px!important;
    border: none!important;
    text-align: center;
    font-size: 32px!important;
    font-weight: bold;
    appearance: textfield;
    -moz-appearance: textfield; /* Firefox */
    margin: 0 10px;
    padding:0px!important;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9ba37;
    color: #000;
    border: none;
    border-radius: 30px;
    padding: 0 25px;
    height: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn:hover {
    background-color: #FFB300;
    color:black;
}

.btn-text {
    margin-right: 10px;
}

.btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.add-to-cart-btn.loading .btn-text,
.add-to-cart-btn.loading .btn-icon {
    visibility: hidden;
}

.add-to-cart-btn.loading .loading-spinner {
    display: block;
}

/* Feedback Messages */
.cart-feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
    border: 1px solid transparent;
}

.cart-feedback.success {
    background-color: #E8F5E9;
    border-color: #C8E6C9;
}

.cart-feedback.error {
    background-color: #FFEBEE;
    border-color: #FFCDD2;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-message,
.error-message {
    display: flex;
    align-items: flex-start;
}

.success-message {
    color: #2E7D32;
}

.error-message {
    color: #C62828;
}

.success-icon,
.error-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: currentColor;
    flex-shrink: 0;
    margin-top: 2px;
}

.error-message span strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

/* Disabled button style */
.add-to-cart-btn.disabled {
    background-color: #E0E0E0;
    color: #9E9E9E;
    cursor: not-allowed;
    box-shadow: none;
}

.add-to-cart-btn.disabled:hover {
    background-color: #E0E0E0;
}

.add-to-cart-btn.disabled:before,
.add-to-cart-btn.disabled:after {
    opacity: 0.5;
}

/* Cart Item Addon Styles */
.cart-item-addon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 6px 10px;
    background-color: #FFF8E1;
    border-radius: 4px;
    font-size: 14px;
}

.addon-label {
    font-weight: 500;
    color: #333;
    position: relative;
    padding-left: 20px;
}

.addon-label:before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #4CAF50;
    font-size: 18px;
    line-height: 14px;
}

.cart-item-addon .addon-price {
    font-weight: 600;
    color: #333;
}

/* Add borders to match design */



/* Responsive Styles */
@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
} 



button.add-to-cart-btn {
    min-width: 200px;
}
.add-to-cart-btn:before {
    content: "";
    background-image: url(/wp-content/uploads/2025/02/arrowbg-yellow.svg);
    height: 33px;
    width: 33px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translatey(-50%);
    z-index: 1;
    background-repeat: no-repeat;
    background-size: contain;
    transition: all 0.3sease-in-out;
}

.add-to-cart-btn:after {
    content: "";
    background-image: url(/wp-content/uploads/2025/02/arrow-right.svg);
    height: 33px;
    width: 33px;
    background-size: initial;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translatey(-50%);
    z-index: 2;
    background-repeat: no-repeat;
    background-position: center center;
    transition: all 0.3sease-in-out;
}

/* Stock Limit Message */
.stock-limit-message {
    display: none;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #FFF3E0;
    border: 1px solid #FFE0B2;
    border-radius: 4px;
    color: #E65100;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* Disabled quantity button */
.quantity-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #E0E0E0;
}

.quantity-btn.disabled:hover {
    background-color: #E0E0E0;
    color: #9E9E9E;
}

/* Enhanced Elementor Mini Cart Styling */


.elementor-menu-cart__main {
    background-color: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 450px;
    max-width: 90vw;
    border-radius: 16px;
}

/* Close button styling */
.elementor-menu-cart__close-button-custom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.elementor-menu-cart__close-button-custom:hover {
    background-color: #e0e0e0;
    transform: rotate(90deg);
}

.elementor-menu-cart__close-button-custom svg {
    width: 16px;
    height: 16px;
    color: #333;
}

/* Products container */
.elementor-menu-cart__products {
    margin: 20px 0;
    max-height: 50vh !important;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    overflow: scroll;
    margin-top: 40px;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.elementor-menu-cart__products::-webkit-scrollbar {
    display: none!important;
}



.elementor-menu-cart__products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.elementor-menu-cart__products::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.elementor-menu-cart__products::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Product item styling */
.elementor-menu-cart__product {
    display: grid !important;
    grid-template-columns: 70px 1fr !important;
    grid-template-rows: auto auto auto auto !important;
    grid-template-areas: 
        "image title"
        "image price"
        "certification certification"
        "rental rental" !important;
    padding: 16px 10px !important;
    position: relative !important;
    gap: 6px 12px !important;
    align-items: start !important;
    border-bottom: 1px solid #f0f0f0 !important;
    margin-bottom: 0 !important;
}

/* Product image in first column, spans first 3 rows */
.elementor-menu-cart__product-image {
    grid-area: image !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin: 0 !important;
    align-self: start !important;
}

/* Product name in first row, second column */
.elementor-menu-cart__product-name {
    grid-area: title !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    padding-right: 25px !important;
}

/* Price in second row, second column */
.elementor-menu-cart__product-price {
    grid-area: price !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    padding-left:0px;
}

/* Certification addon as full width row at the bottom */
.cart-item-addon,
.elementor-menu-cart__product .cart-item-addon,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .cart-item-addon {
    grid-area: certification !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #f7f7f7 !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    margin: 6px 0 0 0 !important;
    font-size: 11px !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #555 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove button styling - bin icon */
.elementor-menu-cart__product-remove {
    position: absolute !important;
    right: 0px;
    top: 16px !important;
    margin: 0 !important;
    z-index: 10 !important;
    width: 20px !important;
    height: 20px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
}

/* Remove the default cross styling */
.elementor-menu-cart__product-remove:before,
.elementor-menu-cart__product-remove:after {
    display: none !important;
}

/* Add bin icon using ::before pseudo-element */
.elementor-menu-cart__product-remove::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    display: block !important;
    transition: all 0.3s ease !important;
    transform: unset;
    background:unset; 
}

/* Hover effect - turn red */
.elementor-menu-cart__product-remove:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e63946' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6'/%3E%3C/svg%3E") !important;
    background:unset;
}

/* Remove any content container styles that might interfere */
.elementor-menu-cart__product-image + div {
    display: contents !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

/* Ensure product content is properly displayed */
.elementor-menu-cart__product-name a {
    color: #333 !important;
    text-decoration: none !important;
}

/* Cart Icon Badge */
.elementor-menu-cart__toggle {
    position: relative;
}

.item-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f9ba37;
    color: #000;
    font-weight: 600;
    border: 2px solid #fff;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.elementor-menu-cart__toggle .item-count-badge.pulse {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Bounce animation for cart icon */
.elementor-menu-cart__toggle_icon.bounce {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Addon tag improvements */
.cart-item-addon {
    position: relative;
    overflow: hidden;
}



/* Improved scrollbar for mobile */
@media (max-width: 767px) {
    .elementor-menu-cart__products {
        max-height: calc(70vh - 200px) !important;
    }
}

/* Error notification in mini cart */

/* Fix for Elementor button styles being overwritten */
body .elementor-widget-woocommerce-menu-cart .elementor-button--view-cart,
body .elementor-widget-woocommerce-menu-cart .elementor-button--checkout {
    padding: 15px 20px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-button--view-cart {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: 2px solid #e0e0e0 !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-button--checkout {
    background-color: #f9ba37 !important;
    color: #000 !important;
    border: 2px solid #f9ba37 !important;
}

/* Fix for mini cart quantity buttons */
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn:hover:not(.disabled) {
    background-color: #f9ba37 !important;
    border-color: #f9ba37 !important;
    color: #000 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 5px rgba(249, 186, 55, 0.3) !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: #f0f0f0 !important;
    border-color: #e0e0e0 !important;
    color: #999 !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-display {
    padding: 0 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
    min-width: 30px !important;
    text-align: center !important;
    font-size: 15px !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-quantity-controls {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    background-color: #f9f9f9 !important;
    border-radius: 30px !important;
    padding: 4px !important;
    width: fit-content !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Fixes for stock indicators and error notifications */
body .elementor-widget-woocommerce-menu-cart .stock-limit-indicator {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    background-color: #f9ba37 !important;
    color: #000 !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    box-shadow: 0 2px 4px rgba(249, 186, 55, 0.3) !important;
    display: none !important;
    z-index: 10 !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product.stock-limit-reached .stock-limit-indicator {
    display: block !important;
}

body .elementor-widget-woocommerce-menu-cart .low-stock-indicator {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    background-color: #ff9800 !important;
    color: #fff !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    font-size: 10px !important;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3) !important;
    display: none !important;
    z-index: 10 !important;
}

body .elementor-widget-woocommerce-menu-cart .mini-cart-error {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100%) !important;
    background-color: #f44336 !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    z-index: 100 !important;
    white-space: nowrap !important;
    animation: fadeIn 0.3s ease !important;
}

/* Fix for button plus/minus icons */
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn.plus:before,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn.plus:after,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn.minus:before {
    content: "" !important;
    position: absolute !important;
    background-color: currentColor !important;
    transition: all 0.2s ease !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn.plus:before {
    top: 50% !important;
    left: 50% !important;
    width: 12px !important;
    height: 2px !important;
    margin-top: -1px !important;
    margin-left: -6px !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn.plus:after {
    top: 50% !important;
    left: 50% !important;
    width: 2px !important;
    height: 12px !important;
    margin-top: -6px !important;
    margin-left: -1px !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn.minus:before {
    top: 50% !important;
    left: 50% !important;
    width: 12px !important;
    height: 2px !important;
    margin-top: -1px !important;
    margin-left: -6px !important;
}

/* Loading state for quantity buttons */
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn.loading {
    pointer-events: none !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn.loading:after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin: -8px 0 0 -8px !important;
    border: 2px solid rgba(0,0,0,0.1) !important;
    border-top-color: #f9ba37 !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
}

/* Fix for animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Remove loading state for quantity buttons */
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn.loading {
    pointer-events: none !important;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .mini-cart-qty-btn.loading:after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin: -8px 0 0 -8px !important;
    border: 2px solid rgba(0,0,0,0.1) !important;
    border-top-color: #f9ba37 !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
}

/* Remove stock limit indicator styles */
.elementor-menu-cart__product .stock-limit-indicator,
body .elementor-widget-woocommerce-menu-cart .stock-limit-indicator {
    display: none !important;
}

/* Certification addon styling */
.addon-label,
.elementor-menu-cart__product .addon-label,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .addon-label {
    font-weight: 500 !important;
    color: #555 !important;
    position: relative !important;
    padding-left: 14px !important;
    display: flex !important;
    align-items: center !important;
}

.addon-label:before,
.elementor-menu-cart__product .addon-label:before,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .addon-label:before {
    content: "+" !important;
    position: absolute !important;
    left: 0 !important;
    color: #777 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

.addon-price,
.cart-item-addon .addon-price,
.elementor-menu-cart__product .cart-item-addon .addon-price,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .cart-item-addon .addon-price {
    font-weight: 600 !important;
    color: #555 !important;
    font-size: 11px !important;
}

/* Fix for last product in cart */
.elementor-menu-cart__product:last-child {
    border-bottom: none !important;
}

/* Fix for product image */
.elementor-menu-cart__product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Ensure proper spacing between grid rows */
.elementor-menu-cart__product {
    grid-template-rows: auto auto auto auto !important;
    row-gap: 6px !important;
}

/* Ensure proper alignment of product content */
.elementor-menu-cart__product > * {
    min-width: 0 !important; /* Fix for text overflow */
}

/* Ensure product name doesn't overflow */
.elementor-menu-cart__product-name a {
    display: block !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Subtotal styling */
.elementor-menu-cart__subtotal {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 0 15px !important;
    border-top: 1px solid #f0f0f0 !important;
    margin-top: 10px !important;
    font-size: 16px !important;
}

/* Improve quantity display */
.product-quantity {
    font-size: 12px !important;
    color: #666 !important;
    font-weight: normal !important;
    background-color: #f0f0f0 !important;
    padding: 1px 5px !important;
    border-radius: 3px !important;
    margin-left: 5px !important;
    display: inline-flex !important;
}

/* Certification addon styling */
.addon-label,
.elementor-menu-cart__product .addon-label,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .addon-label {
    font-weight: 500 !important;
    color: #555 !important;
    position: relative !important;
    padding-left: 14px !important;
    display: flex !important;
    align-items: center !important;
}

.addon-label:before,
.elementor-menu-cart__product .addon-label:before,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .addon-label:before {
    content: "+" !important;
    position: absolute !important;
    left: 0 !important;
    color: #777 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

.addon-price,
.cart-item-addon .addon-price,
.elementor-menu-cart__product .cart-item-addon .addon-price,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product .cart-item-addon .addon-price {
    font-weight: 600 !important;
    color: #555 !important;
    font-size: 11px !important;
}

/* Ensure proper spacing in the grid layout */
.elementor-menu-cart__product {
    grid-template-rows: auto auto auto auto !important;
    row-gap: 6px !important;
}

/* Fix for last product in cart */
.elementor-menu-cart__product:last-child {
    border-bottom: none !important;
}

/* Ensure product name doesn't overflow */
.elementor-menu-cart__product-name a {
    display: block !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Subscription Container */
.product-subscription-container {
    margin-bottom: 30px;
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.subscription-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.subscription-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Value Proposition */
.value-proposition {
    margin-bottom: 25px;
}

.value-proposition p {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

.benefits-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 150px;
}

.benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #555;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Plan Tabs */
.plan-tabs-container {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.plan-tabs {
    display: flex;
    gap: 5px;
}

.plan-tab {
    padding: 10px 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-tab:hover {
    color: #333;
}

.plan-tab.active {
    color: #333;
    border-bottom-color: #f9ba37;
    font-weight: 600;
}

/* Subscription Options */
.subscription-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.subscription-option {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.subscription-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    z-index: -1; /* Ensure it's out of the way */
}

.option-content {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.2s ease;
    width: 100%;
}

.subscription-option:hover .option-content {
    border-color: #cab78d;
    background-color: #fefcf8;
}

.subscription-radio:checked + .option-content {
    border-color: #cab78d;
    background-color: #fefcf8;
    box-shadow: 0 2px 8px rgba(124, 103, 56, 0.1);
}

.subscription-checkbox {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #F0E5CE;
    border: 0px;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.subscription-radio:checked + .option-content .subscription-checkbox {
    background-color: #cab78d;
}

.subscription-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 11px;
    top: 50%;
    width: 6px;
    height: 12px;
    border: solid #7c6738;
    border-width: 0 3px 3px 0;
    transform: translateY(-70%) rotate(45deg);
}

.subscription-radio:checked + .option-content .subscription-checkbox:after {
    display: block;
}

.option-info {
    flex: 1;
}

.option-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 3px;
}

.option-description {
    font-size: 13px;
    color: #666;
}

.option-price {
    text-align: right;
    white-space: nowrap;
    padding-left: 10px;
}

.price-amount {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.price-period {
    font-size: 13px;
    color: #666;
}

/* Comparison Grid */
.comparison-grid {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.comparison-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header-row {
    background-color: #f9f9f9;
    font-weight: 600;
}

.comparison-cell {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.comparison-cell.feature-cell {
    flex: 1.5;
    justify-content: flex-start;
    text-align: left;
    font-weight: 500;
}

.comparison-row:nth-child(even) {
    background-color: #f9f9f9;
}

.check-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4CAF50;
    position: relative;
}

.check-mark:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -60%) rotate(45deg);
}

.dash-mark {
    width: 12px;
    height: 2px;
    background-color: #ccc;
}

.comparison-cell.highlight {
    color: #f9ba37;
    font-weight: 600;
}

.comparison-row.note-row {
    background-color: #f9f9f9;
    font-style: italic;
    color: #666;
    font-size: 13px;
}

.comparison-row.note-row .comparison-cell {
    flex: 1;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .benefits-row {
        flex-wrap: wrap;
    }
    
    .benefit-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .product-subscription-container {
        padding: 15px;
    }
    
    /* Enhanced subscription option styling for mobile */
    .subscription-options {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
        padding-top: 2px; /* Add padding to prevent border clipping */
    }
    
    .subscription-option {
        width: 100%;
        margin: 0;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        margin-bottom: 2px; /* Add margin to prevent border clipping */
        overflow: visible; /* Change from hidden to visible to show borders */
    }
    
    .subscription-option:hover {
        transform: translateY(-3px);
    }
    
    .subscription-option:active {
        transform: translateY(-1px);
    }
    
    .option-content {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        position: relative;
        overflow: hidden;
        min-height: 80px;
    }
    
    .subscription-radio:checked + .option-content {
        border-color: #4CAF50;
        box-shadow: 0 3px 10px rgba(76, 175, 80, 0.15);
        background-color: rgba(76, 175, 80, 0.03);
        transform: translateY(0); /* Remove the negative transform causing the issue */
        transition: all 0.3s ease;
        border-width: 2px; /* Make border more visible instead of using transform */
    }
    
    .subscription-radio:checked + .option-content:before {
        background-color: #4CAF50;
    }
    
    .subscription-radio:checked + .option-content .option-name {
        color: #7c6738;
    }
    
    .subscription-radio:checked + .option-content .subscription-checkbox {
        border-color: #4CAF50;
        background-color: #4CAF50;
    }
    
    @keyframes selectedPulse {
        0% { opacity: 0.7; }
        50% { opacity: 1; }
        100% { opacity: 0.7; }
    }
    
    .subscription-checkbox {
        position: relative;
        display: inline-block;
        width: 22px;
        height: 22px;
        background-color: #F0E5CE;
        border: 0;
        border-radius: 4px;
        margin-right: 10px;
        flex-shrink: 0;
        transition: background-color 0.2s ease;
    }
    
    .subscription-radio:checked + .option-content .subscription-checkbox {
        background-color: #cab78d;
        border-color: #cab78d;
    }
    
    .subscription-checkbox:after {
        content: "";
        position: absolute;
        opacity: 0;
        left: 7px;
        top: 3px;
        width: 6px;
        height: 12px;
        border: solid #7c6738;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
        transition: opacity 0.2s ease;
    }
    
    .subscription-radio:checked + .option-content .subscription-checkbox:after {
        opacity: 1;
    }
    
    .subscription-radio:checked + .option-content {
        border-color: #cab78d;
        box-shadow: 0 3px 10px rgba(202, 183, 141, 0.15);
        background-color: rgba(202, 183, 141, 0.03);
    }
    
    .subscription-radio:checked + .option-content:before {
        background-color: #cab78d;
    }
    
    .subscription-radio:checked + .option-content .option-name {
        color: #7c6738;
    }
    
    .selected-plan-preview {
        color: #7c6738;
        font-weight: 500;
        white-space: nowrap;
        margin-left: 5px;
    }
    
    /* Restore mobile option content styling */
    .option-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .option-name {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        margin-top: 0;
    }
    
    .option-description {
        font-size: 13px;
        color: #666;
        margin-bottom: 0;
        line-height: 1.3;
    }
    
    .option-price {
        text-align: right;
        flex: 0 0 auto;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .price-amount {
        font-weight: 600;
        font-size: 16px;
        color: #333;
        margin-bottom: 2px;
    }
    
    .price-period {
        font-size: 12px;
        color: #777;
    }
    
    /* Restore enhanced touch feedback */
    .subscription-option {
        position: relative;
        overflow: visible;
        -webkit-tap-highlight-color: transparent;
        margin-bottom: 2px;
        width: 100%;
        margin: 0 0 2px 0;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .subscription-option:active .option-content {
        transform: scale(0.98);
    }
    
    .subscription-option:hover {
        transform: translateY(-3px);
    }
    
    .subscription-option:active {
        transform: translateY(-1px);
    }
    
    /* Selected state visual enhancement */
    .option-content:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 4px;
        background-color: transparent;
        transition: background-color 0.2s ease;
    }
    
    @keyframes ripple {
        0% {
            transform: scale(0, 0) translate(-50%, -50%);
            opacity: 0.5;
        }
        100% {
            transform: scale(20, 20) translate(-50%, -50%);
            opacity: 0;
        }
    }
    
    .subscription-option:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(202, 183, 141, 0.3);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%, -50%);
        transform-origin: 50% 50%;
    }
    
    .subscription-option:active:after {
        animation: ripple 0.4s ease-out;
    }
    
    /* Benefit items */
    .benefit-item {
        flex: 0 0 100%;
    }
    
    /* Plan tabs */
    .plan-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .plan-tab {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Comparison modal styles */
    .comparison-modal-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-grid {
        min-width: 650px;
        width: 100%;
    }
    
    .comparison-row {
        display: flex;
        flex-direction: row;
    }
    
    .comparison-cell {
        flex: 1;
        border-bottom: 1px solid #eee;
        min-width: 120px;
    }
    
    .comparison-cell.feature-cell {
        position: sticky;
        left: 0;
        background-color: #fff;
        z-index: 2;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    }
    
    .comparison-row:nth-child(even) .comparison-cell.feature-cell {
        background-color: #f9f9f9;
    }
    
    .comparison-row.header-row .comparison-cell.feature-cell {
        background-color: #f9f9f9;
        z-index: 3;
    }
    
    .comparison-modal-body::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 15px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
        pointer-events: none;
        z-index: 1;
        display: none;
    }
    
    .select-plan-btn {
        padding: 10px 12px;
        margin-top: 15px;
    }
}

/* New styles for extra small screens */
@media (max-width: 480px) {
    .subscription-option {
        margin-bottom: 10px;
    }
    
    .option-content {
        padding: 12px;
        min-height: 70px;
    }
    
    .option-name {
        font-size: 15px;
    }
    
    .option-description {
        font-size: 12px;
    }
    
    .price-amount {
        font-size: 15px;
    }
    
    .price-period {
        font-size: 11px;
    }
    
    .subscription-checkbox {
        flex: 0 0 20px;
        height: 20px;
    }
}

/* Compare Button */
.compare-plans-btn {
    display: inline-block;
    background-color: transparent;
    border: 1px solid #ddd;
    color: #555;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s ease;
    text-align: center;
}

.compare-plans-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color:black;
}

/* Modal Styles */
.comparison-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.comparison-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    padding: 25px;
}

.comparison-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.comparison-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.comparison-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.comparison-modal-close:hover {
    color: #333;
}

/* Select Plan Button */
.select-plan-btn {
    display: inline-block;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    color: #555;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.select-plan-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    color:black;
}

.select-plan-btn.active {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

/* Modal body scroll */
.comparison-modal-body {
    overflow-x: auto;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Responsive styles for modal */
@media (max-width: 768px) {
    .comparison-modal {
        width: 95%;
        padding: 15px;
    }
    
    .comparison-modal-title {
        font-size: 18px;
    }
    
    .select-plan-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Collapsible Subscription Section */
.subscription-collapsible {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.subscription-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.subscription-title-compact {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    margin-right: 10px;
}

.subscription-toggle-icon {
    transition: transform 0.3s ease;
    transform: translateZ(0);
}

.subscription-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out;
    background-color: #fff;
    opacity: 0;
    padding: 0 16px;
    border-left: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.subscription-collapsible.active .subscription-content {
    opacity: 1;
    padding: 16px;
    height: auto;
}

.subscription-collapsible.active .subscription-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.subscription-collapsible.active .subscription-toggle-icon {
    transform: rotate(180deg) translateZ(0);
}

.subscription-badge {
    background-color: #00000029;
    color: #000000;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 20px;
}

.recommended-badge {
    background-color: #FFEFD5;
    color: #FF8C00;
}

.selected-plan-preview {
    display: flex;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
    color: #4CAF50;
    font-weight: 500;
}

.subscription-collapsible:not(.active) .selected-plan-preview {
    display: inline;
}

/* Compact subscription options */
.compact-subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.compact-subscription-option {
    position: relative;
}

.compact-subscription-option .option-content {
    padding: 12px;
    border-radius: 6px;
}

/* Make benefits more compact */
.compact-benefits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin-bottom: 12px;
}

.compact-benefit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.compact-benefit-icon {
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .compact-subscription-options {
        grid-template-columns: 1fr;
    }
}

/* Hidden radio button */
.hidden-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Subscription option styles */
.subscription-option {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.subscription-option:hover {
    transform: translateY(-2px);
}

.option-content {
    border: 2px solid #eee;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.subscription-radio:checked + .option-content {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.option-content:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.subscription-radio:checked + .option-content:before {
    border-color: #4CAF50;
    background-color: #4CAF50;
}



/* Toggle effect for options */
.subscription-option.deselectable {
    cursor: pointer;
}

/* Backorder labels in cart/checkout */
.backorder-label {
    display: inline-block;
    background-color: #FF9800;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Backorder notice in cart/checkout totals */
.backorder-notice {
    background-color: #FFF3E0;
    border-left: 4px solid #FF9800;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-style: italic;
}

/* Thank you page backorder notice */
.backorder-notice.thankyou-notice {
    background-color: #FFF8E1;
    border: 1px solid #FFE0B2;
    border-left: 4px solid #FF9800;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 20px 0 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.backorder-notice.thankyou-notice h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #E65100;
}

.backorder-notice.thankyou-notice p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.backorder-notice.thankyou-notice p:last-child {
    margin-bottom: 0;
}

.backordered-items-list {
    margin: 10px 0 15px 20px;
    padding: 0;
    list-style-type: disc;
}

.backordered-items-list li {
    margin-bottom: 5px;
    color: #555;
}

/* Enhanced styling for backorder labels in checkout */
.woocommerce-checkout .backorder-label {
    display: inline-block;
    background-color: #FF9800;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Make checkout product names and backorder labels display better */
.woocommerce-checkout-review-order-table .product-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left !important;
}

.woocommerce-checkout-review-order-table .product-name .backorder-label {
    margin-top: 5px;
    margin-left: 0 !important;
}

/* Style the backordered items list better */
.backorder-notice.thankyou-notice .backordered-items-list li {
    padding: 2px 0;
}

/* Backorder Info Notice */
.backorder-info-notice {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #FFF8E1;
    border-radius:8px;
    font-size: 0.9em;
    line-height: 1.4;
    color: #666;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Backorder status styling */
.stock-status.on-backorder {
    color: #FF9800;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.stock-status.on-backorder .stock-dot {
    background-color: #FF9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.stock-status.on-backorder .stock-text {
    margin-left: 8px;
}

/* Rental Options Styling */
.product-rental-container {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
}

.rental-date-selection h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.rental-info {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.rental-info .price {
    font-weight: 600;
    color: #0066cc;
}

.rental-date-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.rental-start-date,
.rental-end-date {
    flex: 1;
    min-width: 150px;
}

.rental-date-inputs label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.rental-date-inputs input.rental-datepicker {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.rental-summary {
    background-color: #fff;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #eee;
    font-size: 14px;
}

.rental-summary p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.rental-summary .rental-total {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .rental-date-inputs {
        flex-direction: column;
    }
    
    .rental-start-date,
    .rental-end-date {
        flex: none;
        width: 100%;
    }
}

.rental-info .price{
    background-color: transparent;
    color: black !important;
}

/* Custom Product Display - Unique Custom Select Styles (No Interference) */
.custom-product-display .cpd-custom-select-wrapper {
    position: relative !important;
    width: 100% !important;
    font-family: "Mukta", Sans-serif !important;
}

.custom-product-display .cpd-custom-select-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
    user-select: none !important;
    min-height: 40px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    width: 100% !important;
}

.custom-product-display .cpd-custom-select-trigger:hover {
    border-color: #faba37 !important;
    box-shadow: 0 2px 8px rgba(250, 186, 55, 0.12) !important;
    transform: translateY(-1px) !important;
}

.custom-product-display .cpd-custom-select-wrapper.active .cpd-custom-select-trigger {
    border-color: #faba37 !important;
    box-shadow: 0 2px 8px rgba(250, 186, 55, 0.15) !important;
    border-radius: 8px 8px 0 0 !important;
}

.custom-product-display .cpd-custom-select-text {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    flex: 1 !important;
    line-height: 1.4 !important;
}

.custom-product-display .cpd-custom-select-arrow {
    margin-left: 10px !important;
    transition: transform 0.3s ease !important;
    color: #666 !important;
    width: 12px !important;
    height: 8px !important;
    flex-shrink: 0 !important;
}

.custom-product-display .cpd-custom-select-wrapper.active .cpd-custom-select-arrow {
    transform: rotate(180deg) !important;
}

.custom-product-display .cpd-custom-select-options {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #faba37 !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    z-index: 1000 !important;
    max-height: 180px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-5px) !important;
    transition: all 0.3s ease !important;
}

.custom-product-display .cpd-custom-select-wrapper.active .cpd-custom-select-options {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.custom-product-display .cpd-custom-select-option {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid #f5f5f5 !important;
    font-family: "Mukta", Sans-serif !important;
    min-height: 36px !important;
    background: white !important;
}

.custom-product-display .cpd-custom-select-option:last-child {
    border-bottom: none !important;
}

.custom-product-display .cpd-custom-select-option:hover {
    background: linear-gradient(135deg, #fef9f0 0%, #fdf6e8 100%) !important;
    transform: translateX(1px) !important;
}

.custom-product-display .cpd-custom-select-option.cpd-selected {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%) !important;
    color: white !important;
    font-weight: 600 !important;
}

.custom-product-display .cpd-custom-select-option.cpd-selected:hover {
    background: linear-gradient(135deg, #404040 0%, #2c2c2c 100%) !important;
}

.custom-product-display .cpd-option-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.custom-product-display .cpd-option-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: inherit !important;
}

.custom-product-display .cpd-option-price {
    font-size: 11px !important;
    font-weight: 600 !important;
    opacity: 0.7 !important;
    line-height: 1.2 !important;
    color: inherit !important;
}

.custom-product-display .cpd-custom-select-option.cpd-selected .cpd-option-price {
    opacity: 0.9 !important;
}

.custom-product-display .cpd-option-stock {
    display: flex !important;
    align-items: center !important;
    margin-left: 8px !important;
    flex-shrink: 0 !important;
}

.custom-product-display .cpd-stock-indicator {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    background: rgba(0,0,0,0.03) !important;
    min-width: fit-content !important;
    white-space: nowrap !important;
}

.custom-product-display .cpd-stock-indicator.cpd-in-stock {
    color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.06) !important;
}

.custom-product-display .cpd-stock-indicator.cpd-out-of-stock {
    color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.06) !important;
}

.custom-product-display .cpd-custom-select-option.cpd-selected .cpd-stock-indicator {
    background: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.9) !important;
}

.custom-product-display .cpd-stock-dot {
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background: currentColor !important;
    flex-shrink: 0 !important;
}

/* Loading state for unique classes */
.custom-product-display .cpd-custom-select-wrapper.loading .cpd-custom-select-trigger {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.custom-product-display .cpd-custom-select-wrapper.loading .cpd-custom-select-arrow {
    animation: cpd-spin 1s linear infinite !important;
}

@keyframes cpd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsiveness for unique classes */
@media (max-width: 768px) {
    .custom-product-display .cpd-custom-select-trigger {
        padding: 6px 10px !important;
        font-size: 13px !important;
        min-height: 36px !important;
    }
    
    .custom-product-display .cpd-custom-select-options {
        border-radius: 0 0 6px 6px !important;
        max-height: 200px !important;
    }
    
    .custom-product-display .cpd-custom-select-option {
        padding: 6px 10px !important;
        min-height: 32px !important;
    }
    
    .custom-product-display .cpd-option-name {
        font-size: 12px !important;
    }
    
    .custom-product-display .cpd-option-price {
        font-size: 10px !important;
    }
    
    .custom-product-display .cpd-stock-indicator {
        font-size: 8px !important;
        padding: 1px 3px !important;
    }
    
    .custom-product-display .cpd-option-stock {
        margin-left: 6px !important;
    }
}

/* Dark mode support for unique classes */
@media (prefers-color-scheme: dark) {
    .custom-product-display .cpd-custom-select-trigger {
        background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%) !important;
        border-color: #404040 !important;
        color: #e0e0e0 !important;
    }
    
    .custom-product-display .cpd-custom-select-trigger:hover,
    .custom-product-display .cpd-custom-select-wrapper.active .cpd-custom-select-trigger {
        border-color: #faba37 !important;
    }
    
    .custom-product-display .cpd-custom-select-text {
        color: #e0e0e0 !important;
    }
    
    .custom-product-display .cpd-custom-select-options {
        background: #2a2a2a !important;
        border-color: #faba37 !important;
    }
    
    .custom-product-display .cpd-custom-select-option {
        background: #2a2a2a !important;
        border-bottom-color: #404040 !important;
    }
    
    .custom-product-display .cpd-option-name,
    .custom-product-display .cpd-option-price {
        color: #e0e0e0 !important;
    }
}