.bootstrap-iso{
	margin-bottom: 5px;
}

#wpfooter {
    position: absolute;
    /* bottom: 0; */
    left: 0;
    right: 0;
    padding: 10px 20px;
    color: #50575e;
}
.fme_quantity{
    height: 2.3rem !important;
    text-align: center;
/*    margin-left: 1px;*/
    margin-bottom: 10px;
}

.fme_quantity .qty {
    min-width: 2.5rem !important;
    height: 100% ;
    margin-top: 0 !important;
    padding: 0 !important;
}

.single-product div.product form.cart .fme_quantity {
    float: none;
    margin: 0;
    display: block;
}

.errormsg{
    width: 100%;
    text-align: center;
	margin: auto;
    -webkit-text-fill-color: #ec0c07;
    border-radius: 10px;
    margin-bottom:  5px;
}

.errormsgcart {
    width: 100%;
    text-align: center;
    font-size: 12px;
    margin: auto;
    -webkit-text-fill-color: #ec0c07;
    color: #ec0c07;
    border-radius: 10px;
}

/* Modern design cart/checkout error messages below buttons */
.fme-modern-design .fme-quantity-buttons-wrapper .errormsgcart {
    display: none;
    width: 100%;
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
    color: #ec0c07;
    -webkit-text-fill-color: #ec0c07;
}

.fme_qifw_min_quantity, .fme_quantity {
    text-align: center !important;
    margin-right: 0px !important;
    display: inline-block !important;
}

/* Ensure quantity field is visible in loops for both classic and modern design */
.fme-qifw-input-btns .quantity,
.fme-classic-design .fme-qifw-input-btns .quantity,
.fme-modern-design .fme-qifw-input-btns .quantity,
.fme-qifw-blocks-shop .fme-qifw-input-btns .quantity,
form.fme-qifw-blocks-shop .fme-qifw-input-btns .quantity,
form.fme-qifw-blocks-shop.fme-classic-design .fme-qifw-input-btns .quantity,
form.fme-qifw-blocks-shop.fme-modern-design .fme-qifw-input-btns .quantity {
    display: inline-block !important;
    margin: 0 5px !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
}

.fme-qifw-input-btns .quantity input,
.fme-classic-design .fme-qifw-input-btns .quantity input,
.fme-modern-design .fme-qifw-input-btns .quantity input,
.fme-qifw-blocks-shop .fme-qifw-input-btns .quantity input,
form.fme-qifw-blocks-shop .fme-qifw-input-btns .quantity input,
form.fme-qifw-blocks-shop.fme-classic-design .fme-qifw-input-btns .quantity input,
form.fme-qifw-blocks-shop.fme-modern-design .fme-qifw-input-btns .quantity input {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    min-width: 2.5rem !important;
    height: auto !important;
}

.fme_qbtns {
    min-width: 2.5rem !important;
/*    min-width: 2.5rem ;*/
    height: 2.3rem !important;
    border: none;
    cursor: pointer;
    line-height: 0 !important;
    min-height: unset !important;
}
.fme_retailer_btn_position{
    justify-content: center;
}
p.minimum-qty-error, p.maximum-qty-error {
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
    display: inline-flex;
    align-items: center;
    background-color: #f4f8ff;
    pointer-events: all;
    max-width: fit-content;
    padding: 10px;
    color: #404041;
    gap: 10px;
}
p.minimum-qty-error > svg, p.maximum-qty-error > svg {
    fill: #fff;
    background-color: #007cba;
    border-radius: 50%;
    flex-grow: 0;
    flex-shrink: 0;
    height: 100%;
    padding: 2px;
}
form.fme-qifw-blocks-shop .fme-qifw-input-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: .75rem;
}
form.fme-qifw-blocks-shop input {
    outline: unset !important;
}
form.fme-qifw-blocks-shop .quantity {
    display: inline-block !important;
    margin: 0 5px !important;
}
form.fme-qifw-blocks-shop .quantity input {
    min-width: 2.25rem !important;
    height: 35px !important;
    padding: 0 10px !important;
    text-align: center;
}
.fme-qifw-add-to-cart-btn button {
    margin-top: 0 !important;
}
/* Chrome, Safari, Edge, Opera */
form.fme-qifw-blocks-shop input::-webkit-outer-spin-button,
form.fme-qifw-blocks-shop input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
form.fme-qifw-blocks-shop input[type=number] {
  -moz-appearance: textfield;
}

/* Block Theme Shop Page - Remove borders and fix alignment */
.fme-qifw-blocks-shop .fme-qifw-input-btns {
    align-items: center;
}

.fme-qifw-blocks-shop .fme-qifw-qty {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

form.fme-qifw-blocks-shop .quantity input.fme-qifw-qty {
    border: none !important;
}

/* Ensure quantity input field is visible in product loops (shop, related products, etc.) */
.fme-qifw-input-btns .quantity,
.fme-modern-design .fme-qifw-input-btns .quantity,
.fme-classic-design .fme-qifw-input-btns .quantity {
    display: inline-block !important;
    margin: 0 5px !important;
}

.fme-qifw-input-btns .quantity input,
.fme-modern-design .fme-qifw-input-btns .quantity input,
.fme-classic-design .fme-qifw-input-btns .quantity input {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Block Theme - Fix View Cart link position and button alignment */
.wc-block-components-product-button {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form.fme-qifw-blocks-shop {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.fme-qifw-blocks-shop .wp-block-button__link {
    margin-bottom: 0.5rem !important;
}

.fme-qifw-blocks-shop .fme-view-cart-link {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    width: 100%;
}

/* Block Theme - Classic Design Fixes for Cart/Checkout (only for non-modern design) */
.wc-block-cart .fme_retailer_btn_position:not(.fme-modern-design),
.wc-block-checkout .fme_quantity_btn_position:not(.fme-modern-design),
.wc-block-cart .fme-classic-design .fme_quantity_btn_position,
.wc-block-checkout .fme-classic-design .fme_quantity_btn_position {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
}

/* Classic design buttons in block themes - only apply when NOT modern design */
.wc-block-cart .fme-classic-design .fme_qbtns,
.wc-block-checkout .fme-classic-design .fme_qbtns,
.wp-block-post-content .fme-classic-design .fme_qbtns,
.wc-block-cart .fme-classic-design .pq-minus,
.wc-block-checkout .fme-classic-design .pq-minus,
.wp-block-post-content .fme-classic-design .pq-minus,
.wc-block-cart .fme-classic-design .pq-plus,
.wc-block-checkout .fme-classic-design .pq-plus,
.wp-block-post-content .fme-classic-design .pq-plus {
    min-width: 30px !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

/* Modern design buttons in block themes - ensure circular styling overrides classic rules */
.wc-block-cart .fme-modern-design .fme_qbtns,
.wc-block-checkout .fme-modern-design .fme_qbtns,
.wp-block-post-content .fme-modern-design .fme_qbtns,
.wc-block-cart .fme-modern-design .pq-minus,
.wc-block-checkout .fme-modern-design .pq-minus,
.wp-block-post-content .fme-modern-design .pq-minus,
.wc-block-cart .fme-modern-design .pq-plus,
.wc-block-checkout .fme-modern-design .pq-plus,
.wp-block-post-content .fme-modern-design .pq-plus {
    min-width: 38px !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-block-cart .fme_quantity,
.wc-block-checkout .fme_quantity,
.wp-block-post-content .fme_quantity {
    display: inline-flex !important;
    margin: 0 5px !important;
}

.wc-block-cart .fme_quantity input,
.wc-block-checkout .fme_quantity input,
.wp-block-post-content .fme_quantity input {
    width: 50px !important;
    min-width: 50px !important;
    height: 37px !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 5px !important;
    border: 1px solid #ddd !important;
    background: white !important;
    box-shadow: none !important;
}

/* Block Theme - Single Product Classic Design */
.wp-block-post-content .fme_quantity_btn_position,
.wp-block-post-content #fme-quantity-btns-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
}

@media only screen and (min-width: 312px) and (max-width: 782px) {
    p.minimum-qty-error, p.maximum-qty-error {
        top: 80px;
        margin: 0 !important;
        bottom: unset;
        padding: 5px;
        left: 5px;
        right: 5px;
        font-size: 14px;
        gap: 5px;
    }
    p.minimum-qty-error > svg, p.maximum-qty-error > svg {
        width: 15px;
    }
}

@media screen and (min-width:600px) and (max-width:767px){
    .fme_quantity .qty {
        min-width: 3rem !important;
        height: 2.8vh !important;
        margin-top: 0 !important;
    }
        
}

@media screen and (min-width:768px) and (max-width:1180px){
    .fme_quantity .qty {
        min-width: 3rem !important;
        height: 3.6vh !important;
        margin-top: 0 !important;
    }
        
}
@media screen and (min-width:280px) and (max-width:653px){.fme_quantity .qty {
    min-width: 3rem !important;
    height: 2.8vh !important;
    margin-top: 0 !important;
}
    }
    @media screen and (min-width:390px) and (max-width:844px){
        .fme_quantity .qty {
        min-width: 3rem !important;
        height: 4.4vh !important;
    }
}
@media screen and (min-width:360px) and (max-width:740px){
            .fme_quantity .qty {
            min-width: 3rem !important;
            height: 4.9vh !important;
        }
        }

        @media screen and (min-width:412px) and (max-width:915px){
            .fme_quantity .qty {
            min-width: 3rem !important;
            height: 4vh !important;
        }
        }
@media screen and (min-width:820px) and (max-width:1180px){
            .fme_quantity .qty {
            min-width: 3rem !important;
            height: 3.3vh !important;
        }
        }

        @media screen and (min-width:912px) and (max-width:1368px){
            .fme_quantity .qty {
            min-width: 3rem !important;
            height: 2.8vh !important;
        }
        }

            @media screen and (min-width:540px) and (max-width:720px){
            .fme_quantity .qty {
            min-width: 3rem !important;
            height: 5.1vh !important;
        }
        }

/* ============================================
   MODERN DESIGN SYSTEM - Added v1.2.0
   ============================================ */

/* Modern Design Container */
.fme-modern-design #fme-quantity-btns-container,
.fme-modern-design .fme_quantity_btn_position,
.fme-modern-design .fme_retailer_btn_position {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Min/Max Badges */
.fme-modern-design .fme-qty-limits {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.fme-modern-design .fme-limit-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.fme-modern-design .fme-min-badge {
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.fme-modern-design .fme-min-badge svg {
    fill: #667eea;
}

.fme-modern-design .fme-max-badge {
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.fme-modern-design .fme-max-badge svg {
    fill: #e74c3c;
}

.fme-modern-design .fme-limit-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Modern Quantity Wrapper - Rounded Design */
.fme-modern-design #fme-quantity-btns-wrapper,
.fme-modern-design .fme_retailer_btn_position > div:first-of-type {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: fit-content;
    margin: 0 auto;
}

/* Modern Quantity Buttons - Circular */
.fme-modern-design .fme_qbtns,
.fme-modern-design .pq-minus,
.fme-modern-design .pq-plus {
    min-width: 38px !important;
    width: 38px;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.fme-modern-design .fme_qbtns:hover:not(:disabled),
.fme-modern-design .pq-minus:hover:not(:disabled),
.fme-modern-design .pq-plus:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.fme-modern-design .fme_qbtns:disabled,
.fme-modern-design .pq-minus:disabled,
.fme-modern-design .pq-plus:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Modern Quantity Input Field */
.fme-modern-design .fme_quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.fme-modern-design .fme_quantity .qty,
.fme-modern-design .fme_qifw_min_quantity,
.fme-modern-design #fme-quantity-btns-wrapper input[type="text"],
.fme-modern-design #fme-quantity-btns-wrapper input[type="number"] {
    min-width: 50px !important;
    width: 38px;
    height: 38px !important;
    border-radius: 50% !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 0 8px !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove number input arrows for modern design */
.fme-modern-design input[type=number]::-webkit-outer-spin-button,
.fme-modern-design input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fme-modern-design input[type=number] {
    -moz-appearance: textfield;
}

/* ========================================
   RANGE SLIDER STYLES - ALWAYS MODERN DESIGN
   Slider styles are independent of classic/modern design setting
   ======================================== */

/* Range Slider - ALWAYS uses modern design regardless of classic/modern setting */

/* Single Product Slider */
.single-product .fme-slider-container {
    width: 100%;
    max-width: 310px;
    margin: 15px 0;
}

.single-product .fme-slider-wrapper {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.single-product .fme-slider-value {
    font-size: 20px;
    font-weight: 700;
    color: #00c58e;
    text-align: center;
    margin-bottom: 10px;
}

/* Shop/Cart/Checkout Slider (Compact) */
.fme-slider-container {
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
}

/* Slider inside buttons wrapper (when both buttons and slider are enabled) */
.fme-quantity-buttons-wrapper .fme-slider-container {
    width: 100%;
    max-width: 100%;
    margin: 10px 0 0 0;
}

.fme-slider-wrapper {
    background: transparent;
    padding: 8px 0;
}

.fme-slider-value {
    font-size: 14px;
    font-weight: 700;
    color: #00c58e;
    text-align: center;
    margin-bottom: 6px;
}

/* Slider labels container - ALWAYS modern design */
.fme-slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.fme-slider-min-label,
.fme-slider-max-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    min-width: 20px;
}

/* Slider Track & Thumb - ALWAYS modern design */
.fme-qty-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 10px;
    background: #e8e9ed;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fme-qty-slider:hover {
    background: #d8d9dd;
}

/* Slider Thumb - Webkit - ALWAYS modern design */
.fme-qty-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00c58e;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 197, 142, 0.3);
    transition: all 0.2s ease;
}

.fme-qty-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 197, 142, 0.4);
}

/* Slider Thumb - Firefox - ALWAYS modern design */
.fme-qty-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00c58e;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 197, 142, 0.3);
    transition: all 0.2s ease;
}

.fme-qty-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 197, 142, 0.4);
}

/* Firefox specific track styles - ALWAYS modern design */
.fme-qty-slider::-moz-range-track {
    background: #e8e9ed;
    border-radius: 10px;
    height: 4px;
}

/* Control Type: Both - Spacing */
.fme-control-type-both .fme-slider-container {
    margin-top: 12px;
}

/* Responsive Slider Styles - ALWAYS modern design */
@media only screen and (max-width: 782px) {
    .single-product .fme-slider-wrapper {
        padding: 12px 15px;
    }

    .single-product .fme-slider-value {
        font-size: 18px;
    }
}

/* Responsive Design - Modern */
@media screen and (min-width: 768px) and (max-width: 1180px) {
    .fme-modern-design .fme_qbtns,
    .fme-modern-design .pq-minus,
    .fme-modern-design .pq-plus {
        min-width: 36px !important;
        width: 36px;
        height: 36px !important;
        font-size: 16px !important;
    }

    .fme-modern-design .fme_quantity .qty,
    .fme-modern-design .fme_qifw_min_quantity {
        min-width: 50px !important;
        width: 50px;
        height: 36px !important;
        font-size: 15px !important;
    }
}

@media screen and (max-width: 767px) {
    .fme-modern-design #fme-quantity-btns-wrapper,
    .fme-modern-design .fme_retailer_btn_position > div:first-of-type {
        padding: 5px;
        gap: 8px;
    }

    .fme-modern-design .fme_qbtns,
    .fme-modern-design .pq-minus,
    .fme-modern-design .pq-plus {
        min-width: 34px !important;
        width: 34px;
        height: 34px !important;
        font-size: 16px !important;
    }

    .fme-modern-design .fme_quantity .qty,
    .fme-modern-design .fme_qifw_min_quantity {
        min-width: 48px !important;
        width: 48px;
        height: 34px !important;
        font-size: 14px !important;
    }

    .fme-modern-design #fme-quantity-btns-name,
    .fme-modern-design .fme_label_btn {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 320px) {
    .fme-modern-design #fme-quantity-btns-wrapper,
    .fme-modern-design .fme_retailer_btn_position > div:first-of-type {
        padding: 4px;
        gap: 6px;
    }

    .fme-modern-design .fme_qbtns,
    .fme-modern-design .pq-minus,
    .fme-modern-design .pq-plus {
        min-width: 32px !important;
        width: 32px;
        height: 32px !important;
        font-size: 14px !important;
    }

    .fme-modern-design .fme_quantity .qty,
    .fme-modern-design .fme_qifw_min_quantity {
        min-width: 42px !important;
        width: 42px;
        height: 32px !important;
        font-size: 13px !important;
    }
}

/* Hide WooCommerce default quantity input when slider-only mode is active (both Modern and Classic designs) */
.fme-control-type-slider form.cart div.quantity:not(.fme_quantity),
.fme-control-type-slider form.cart .quantity input.qty:not(.fme-qifw-qty),
.single-product .fme-control-type-slider form.cart .quantity:not(.fme_quantity),
.single-product .fme-control-type-slider form.cart .quantity input.qty:not(.fme-qifw-qty),
.fme-classic-design.fme-control-type-slider form.cart div.quantity:not(.fme_quantity),
.fme-classic-design.fme-control-type-slider form.cart .quantity input.qty:not(.fme-qifw-qty),
.single-product .fme-classic-design.fme-control-type-slider form.cart .quantity:not(.fme_quantity),
.single-product .fme-classic-design.fme-control-type-slider form.cart .quantity input.qty:not(.fme-qifw-qty) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

#wpfooter #footer-thankyou {
    background-color: #00c58e !important;
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
}