/*
 * Frontend Product Page - Location Stock Dropdown Styles
 */

.wc-api-sync-location-selector-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.wc-api-sync-location-selector-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.wc-api-sync-location-selector {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    line-height: 1.5;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23555%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    cursor: pointer;
}

.wc-api-sync-location-selector:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.wc-api-sync-location-selector option[disabled] {
    color: #aaa;
    background-color: #f0f0f0;
}

.wc-api-sync-location-stock-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    display: none; /* Hidden by default */
}

.wc-api-sync-location-stock-message.success {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    color: #005a9c;
}

.wc-api-sync-location-stock-message.error {
    background-color: #ffecec;
    border: 1px solid #f5c2c2;
    color: #a10f0f;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .wc-api-sync-location-selector-container {
        padding: 10px;
    }

    .wc-api-sync-location-selector {
        font-size: 14px;
    }
}
