/* General Styles for the Search Field and Button */
#sku-search-field, #sku-search-submit {
    width: 100%;
    padding: 12px 20px;
    font-size: 18px;
    border: 2px solid #0073aa;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

#sku-search-submit {
    background-color: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

#sku-search-submit:hover {
    background-color: #005177;
    transform: translateY(-2px);
}

/* Background Overlay */
#sku-search-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Styles for the Search Result Popup */
#sku-search-result {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #0073aa;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000 !important;
    animation: fadeIn 0.5s;
    text-align: center;
}

#sku-search-result img {
    max-width: 100%;
    height: auto;
    margin: 0 auto 15px auto;
    border-radius: 6px;
    display: block;
}

#sku-search-result p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: center;
}

#sku-search-result p.price {
    font-weight: bold;
    color: #0073aa;
    font-size: 18px;
}

/* Close Icon - Improved positioning and visibility */
.close-icon {
    font-size: 24px;
    color: #0073aa;
    background-color: white;
    padding: 5px;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 115, 170, 0.3);
}

.close-icon:hover {
    background-color: rgba(0, 115, 170, 0.1);
}

/* Loading Animation */
.search-animation {
    display: block;
    width: 50px;
    height: 50px;
    margin: 20px auto;
    border: 3px solid rgba(0, 115, 170, 0.3);
    border-radius: 50%;
    border-top: 3px solid #0073aa;
    animation: spin 1s linear infinite;
}

div#sku-search-result {
       margin-top: 5% !important;
        background-color: #231E21 !important; 
        
    }

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

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

/* Not Found Message Styling */
#sku-search-result .not-found-message {
    text-align: center;
    padding: 20px 10px;
    color: #333;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    #sku-search-result {
        width: 85%;
        padding: 20px;
        max-height: 80vh;
    }
    
    #sku-search-field, #sku-search-submit {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    #sku-search-result img {
        max-width: 85%;
        max-height: 250px;
        object-fit: contain;
    }
}

@media screen and (max-width: 480px) {
    #sku-search-result {
        width: 90%;
        padding: 25px 15px;
        top: 59%;
		z-index:10000 !important;
        max-height: 85vh;
    }
    
    #sku-search-field, #sku-search-submit {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    #sku-search-result p {
        font-size: 15px;
    }
    
    #sku-search-result p.price {
        font-size: 17px;
    }
    
    #sku-search-result img {
        max-width: 80%;
        max-height: 200px;
        object-fit: contain;
    }
    
    .close-icon {
        font-size: 22px;
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
}

@media only screen and (min-width: 1024px) and (max-width: 1440px) {
    
	
	#sku-search-result {
    display: none;
    position: fixed;
    top: 85% ;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    border: 1px solid #0073aa;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
    background-color: #fff;
    max-width: 450px !important;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000 !important;
    animation: fadeIn .5s;
    text-align: center;
}
}


