#fo-btn {
    width: 100%;
    margin-bottom: 10px;
    border: 0;
    cursor: pointer;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fo-btn svg {
    width: 16px;
    margin-right: 8px;
    margin-left: 8px;
}

#fo-popup {
    width: 70%;
    height: 650px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    font: normal 14px/1.4 Arial, Helvetica, sans-serif;
    overflow: auto;
}

#fo-popup-wrapper {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    overflow: auto;
    display: none;
    position: fixed;
    z-index: 999;
    align-items: center;
    justify-content: center;
    top: 0;
}

.product-form--atc #fo-btn {
    margin-top: 15px;
    border-radius: 3px;
}

#fo-body {
    display: flex;
}


.align-left-icon {
    padding-left: 25px;
}

#ab-fo-wrapper #fo-btn {
    margin-bottom: 0;
}

#fo-mobile-wrapper {
    margin-bottom: 20px;
    width: 50%;
}

.fo-mobile-item {
    padding-top: 5px;
    padding-bottom: 5px;
    border: 1px solid #cccccc;
    text-align: center;
}

.selected-fo-mobile-item {
    color: #fff;
    background: #727272;
}

.fo-mobile-wrapper-item {
    width: auto !important;
    height: 525px !important;
    overflow-y: auto !important;
}

.fo-mobile-detail-wrapper {
    display: block !important;
}

.fo-mobile-detail-item {
    width: auto !important;
}

.fo-mobile-detail-height {
    height: auto !important;
}

/* .fo-mobile-infowindow {
    padding-top: 10px !important;
    padding-left: 10px !important;
    left: 2px !important;
} */

.fo-mobile-infowindow-wrapper {
    padding-right: 20px !important;
    padding-bottom: 10px !important;
    max-width: 200px !important;
    min-width: 200px !important;
}

#fo-mobile-container {
    display: flex;
    justify-content: space-between;
}

#fo-mobile-container svg {
    height: 14px;
}

.info-value a {
    word-break: break-all;
}

#fo-mobile-container{
    display: none;
}
@media only screen and (max-width: 600px) {
    #fo-popup{
        overflow: auto;
        width: 90%;
    }
    #fo-body{
        display: block; 
    }  

}

/* Retailers Grid Styles */
#retailers-container {
    margin: 20px auto 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 10px;
    width: calc(6 * 180px + 5 * 20px); 
}

#fo-popup-wrapper .fo-popup-header .fo-popup-header-title {
    text-align: center;
}
#fo-popup-wrapper .fo-popup-header .fo-popup-header-title span {
    font-size: 30px;
    font-weight: bold;
}

.retailer-card {
    display: inline-block;
    width: 180px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    vertical-align: top;
    transition: box-shadow 0.2s ease;
}
.retailer-card:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.retailer-logo {
    margin-bottom: 15px;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retailer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.retailer-name {
    font-size: 14px;
    font-weight: 600;
    color: #858585;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.retailer-name:hover {
    text-decoration: underline;
}

.no-retailers {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media only screen and (max-width: 1024px) and (min-width: 769px) {
    .retailer-card {
        width: 140px;
        padding: 8px;
    }
    
    #retailers-container {
        width: calc(3 * 140px + 2 * 18px); 
        column-gap: 18px;
        row-gap: 18px;
    }
    
    .retailer-logo {
        height: 130px;
    }
    
    .retailer-name {
        font-size: 13px;
    }
}

@media only screen and (max-width: 768px) {
    .retailer-card {
        width: 140px;
        padding: 15px;
    }
    
    #retailers-container {
        width: calc(4 * 140px + 3 * 15px); 
        column-gap: 15px;
        row-gap: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .retailer-card {
        width: 120px;
        padding: 12px;
        margin: 5px 0;
    }
    
    #retailers-container {
        width: calc(2 * 120px + 1 * 10px);
        column-gap: 10px;
        row-gap: 10px;
        margin: 15px auto 0;
    }
    
    .retailer-logo {
        height: 100px;
        margin-bottom: 10px;
    }
    
    .retailer-name {
        font-size: 12px;
        min-height: 32px;
    }
}