#etodia-container {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    flex-direction: row-reverse;
    gap: 15px;
    align-items: flex-start;
}
#etodia-steps-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}
#etodia-steps-container {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
#etodia-selected-products {
    width: 300px;
    padding: 15px;
    background-color: var(--global-palette8, #F7FAFC);
    border-radius: 20px;
    box-sizing: border-box;
}

.selected-products-title {
    font-size: 1rem;
    height: 43px;
    line-height: 43px;
    padding: 5px 15px 5px 15px;
    position: relative;
    text-transform: uppercase;
    color: var(--global-palette3);
    font-weight: 700;
    background-color: var(--global-palette9, #ffffff);
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem !important;
}
.empty-message {
    font-size: 1rem;
    font-weight: 600;
    display: block;
    text-align: center;
}

#selected-products-list{
    padding: 0;
    margin: 0;
}
#selected-products-list li {
    padding: 5px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

#selected-products-list .remove-product {
    display: inline-block;
    margin-right: 5px;
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    vertical-align: middle;
    transition: all 0.2s ease;
}
#selected-products-list .remove-product:hover {
    color: #c0392b;
    transform: scale(1.2);
}
#selected-products-list li div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    font-size: 0.75rem;
    margin-bottom: 5px;
    background-color: #ffffff;
    border-radius: 10px;
    width: 100%;
}

#add-to-cart-btn, #final-add-to-cart ,#restart-order-btn {
    width: 100%;
    background-color: var(--global-palette-btn-bg);
    color: var(--global-palette-btn);
    border: none;
    border-radius: 10px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0px 0px 0px -7px rgba(0, 0, 0, 0);
    line-height: 40px;
    padding: 0 1em;
    text-align: center;
}
#restart-order-btn {
    background-color: #ef4056 !important;
}

.etodia-btn, .device-category-btn, .liquid-category-btn, .cc-category-btn, .accessory-category-btn {
    width: 100%;
    background-color: var(--global-palette-btn-bg);
    color: var(--global-palette-btn);
    border: none;
    border-radius: 10px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0px 0px 0px -7px rgba(0, 0, 0, 0);
    line-height: 40px;
    padding: 0 1em;
    text-align: center;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    float: inline-end;
}
.back-btn:hover {
    background: #6c757d;
    color: white;
}

#etodia-steps-wrapper p{
    margin-bottom: 0.5rem !important;
}

.etodia-products {
    list-style: none !important;
    padding: 0 !important;
}
.etodia-products li {
    padding: 15px;
    margin-bottom: 5px;
    border: 2px solid var(--global-palette8);
    border-radius: 20px;
    transition: border 0.5s ease;
}
.etodia-products li:hover {
    border: 2px solid #d5d5d5;
}

.etodia-quick-order-show-product{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}



#etodia-step-result input[type="radio"],
#etodia-step-result input[type="checkbox"]{
    display: none;
}
#etodia-step-result label {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 5px;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.2;
}
#etodia-step-result input[type="radio"]:checked + label,
#etodia-step-result input[type="checkbox"]:checked + label {
    border-color: gray;
    background-color: #F4F4F4;
}
#etodia-step-result input[type="radio"]:disabled + label,
#etodia-step-result input[type="checkbox"]:disabled + label {
    opacity: 0.3;
    cursor: not-allowed;
}

/* لیست محصولات اکسسوری */
.etodia-accessory-products {
    list-style: none;
    padding: 0 !important;
}
.etodia-accessory-products li {
    margin-bottom: 8px;
}


.variation-option {
    display: inline-block;
    margin-right: 5px;
    padding: 5px;
    border: 2px solid var(--global-palette8);
    border-radius: 10px;
    cursor: pointer;
}
.device-product .variation-option {
    display: inline-flex;
    margin-right: 5px;
    padding: 5px;
    border: 2px solid var(--global-palette8);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.variation-option:first-child {
    margin-right: 0px;
}
.variation-option:hover {
    border: 2px solid #d5d5d5;
}
.variation-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--global-palette8);
    margin-right: 3px;
    vertical-align: middle;
}
.variation-swatch-text {
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
    font-size: 12px;
}

.eqo-image{
    display: block;
}
.eqo-brand{
    display: block;
    font-weight: 500;
    font-style: normal;
    background: var(--global-palette8);
    padding: 8px;
    font-size: 0.75rem;
    border-radius: 10px;
    max-width: fit-content;
    line-height: 1;
}
.eqo-title{
    padding: 0 !important;
    margin: 20px 0 10px 0 !important;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--global-palette4, #2D3748);
    line-height: 1.4;
}
.eqo-description{
    margin: 15px 0 15px 0;
    display: block;
    font-weight: 400;
    font-style: normal;
    font-size: 0.8rem;
}
.eqo-description p{
    display: inline !important;
}
.eqo-description ul{
    margin-bottom: 10px !important;
}
.eqo-description li{
    padding: 0 !important;
    margin-bottom: 5px;
    border: none !important;
    border-radius: 0 !important;
    transition: none !important;
}
.eqo-description li:hover {
    border: none !important;
}
.eqo-description.expandable.collapsed {
    max-height: 60px;
    overflow: hidden;
}
.eqo-description.expandable {
    transition: max-height 0.3s ease;
}
.eqo-price{
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--global-palette4, #2D3748);
    line-height: 1.4;
}
.eqo-price-label{
    font-size: 0.7rem;
    font-style: normal;
    color: rgba(77, 77, 77, 0.7);
}
.eqo-additional-info ul{
    padding: 0 !important;
}
.eqo-additional-info ul li{
    margin-bottom: 0 !important;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 5px;
}

.tooltip-trigger {
    cursor: pointer;
    color: var(--global-palette1);
    border-bottom: 1px dotted var(--global-palette1);
    text-decoration: none;
}

.tooltip-content {
    position: absolute;
    top: 110%;
    
    background: var(--global-palette9);        
    color: var(--global-palette3);             
    padding: 10px;
    border-radius: 10px;      
    max-width: 400px;         
    white-space: normal;      
    line-height: 1.5;          
    z-index: 999999; 
    width: max-content;
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.3s ease; 

    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

}

.tooltip-wrapper.show-tooltip .tooltip-content {
    opacity: 1 !important;
    visibility: visible !important;
}
.tooltip-content-showmore{
    max-height: 300px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #e1e1e1 transparent;
}
.tooltip-content .product-additional-info{
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}
.tooltip-content .product-additional-info li{
    width: 100%;
    padding: 5px 5px 5px 10px;
    margin: 5px 0 5px 0;
    border: none;
    border-bottom: solid 1px var(--global-palette8);
    border-radius: 0;
    transition: border 0.5s ease;
    font-size: 0.8rem;
    font-weight: 500;
}
.tooltip-content .product-additional-info li:last-child{
    border-bottom: none;
}
.tooltip-content .product-additional-info strong{
    font-size: 0.85rem;
}


#etodia-loader {
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 99999;
    backdrop-filter: blur(2px);
    pointer-events: none;
}
#etodia-loader p {
    color: var(--global-palette9);
}
.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #ffffff;
    border-top-color: var(--global-palette1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}



@media (max-width: 768px) {
    #etodia-container {
        flex-direction: column;
    }
    #etodia-steps-wrapper {
        order: 1;
        width: 100% !important;
        margin: 0;
        padding: 5px;
    }
    #etodia-selected-products {
        order: 2;
        width: 100% !important;
        margin: 0;
    }
    .etodia-quick-order-show-product{
        flex-direction: column;
    }
    .tooltip-content{
        max-width: 300px;
    }
}

/* استایل برای تصاویر وریشن */
.product-image-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
}

.variation-images-container {
    width: 100%;
    position: relative;
}

.variation-image {
    width: 100%;
    transition: opacity 0.3s ease;
}

/* استایل برای لودر تصاویر وریشن */
.variation-image-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    flex-direction: column;
}

.variation-image-loader.loading {
    opacity: 1;
    visibility: visible;
}



.image-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(var(--global-palette1-rgb, 49, 130, 206), 0.2);
    border-top: 4px solid var(--global-palette1, #3182ce);
    border-radius: 50%;
    animation: image-spin 1s linear infinite;
    margin-bottom: 10px;
}

.loader-text {
    font-size: 14px;
    color: var(--global-palette4, #2D3748);
    font-weight: 500;
}

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

/* استایل برای دکمه‌های وریشن */
.variation-option {
    display: inline-block;
    margin-right: 5px;
    padding: 5px;
    border: 2px solid var(--global-palette8);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variation-option.selected-variation {
    border-color: var(--global-palette1);
    background-color: rgba(var(--global-palette1-rgb), 0.1);
}

/* استایل برای دکمه افزودن به سبد خرید */
.add-variation-to-cart, .add-product-to-cart {
    width: 100%;
    background-color: var(--global-palette-btn-bg);
    color: var(--global-palette-btn);
    border: none;
    border-radius: 10px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0px 0px 0px -7px rgba(0, 0, 0, 0);
    line-height: 40px;
    padding: 0 1em;
    text-align: center;
}

.add-variation-to-cart:hover, .add-product-to-cart:hover {
    background-color: var(--global-palette-btn-bg-hover);
    color: var(--global-palette-btn-hover);
}
