/* Multi Location Stock - Frontend Styles */

.mls-location-info {
    padding: 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

.mls-current-location {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.mls-change-location {
    margin-left: 10px;
    font-size: 14px;
    text-decoration: underline;
}

.mls-stock-available {
    color: #46b450;
    font-weight: 600;
    margin: 5px 0;
}

.mls-stock-unavailable {
    color: #dc3232;
    font-weight: 600;
    margin: 5px 0;
}

.mls-stock-icon {
    font-size: 18px;
    margin-right: 5px;
}

.mls-alternative-locations {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.mls-alternative-locations ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.mls-alternative-locations li {
    padding: 5px 0;
}

/* Modal */
.mls-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mls-modal.active {
    display: flex;
}

.mls-location-selector {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.mls-location-selector.mls-in-modal {
    position: relative;
}

.mls-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.mls-modal-close:hover {
    color: #000;
}

.mls-location-selector h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.mls-locations-list {
    margin-top: 20px;
}

.mls-location-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

.mls-location-item:hover {
    border-color: #999;
}

.mls-location-item h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.mls-location-address {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.mls-select-location {
    width: 100%;
    padding: 10px;
}

/* Loading spinner */
.mls-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: mls-spin 1s linear infinite;
}

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